func (t *Token) FromRows(rows *sql.Rows) error {
	var scant struct {
		ID        int
		CreatedAt sql.NullTime
		UpdatedAt sql.NullTime
		Value     sql.NullString
	}
	// the order here should be the same as in the `token.Columns`.
	if err := rows.Scan(
		&scant.ID,
		&scant.CreatedAt,
		&scant.UpdatedAt,
		&scant.Value,
	); err != nil {
		return err
	}
	t.ID = scant.ID
	t.CreatedAt = scant.CreatedAt.Time
	t.UpdatedAt = scant.UpdatedAt.Time
	t.Value = scant.Value.String
	return nil
}
// FromRows scans the sql response data into Token.
FromRows scans the sql response data into Token.
// FromRows scans the sql response data into Token .
func (t *Token) FromRows(rows *sql.Rows) error {
	var scant struct {
		ID        int
		CreatedAt sql.NullTime
		UpdatedAt sql.NullTime
		Value     sql.NullString
	}
	if err := rows.Scan(
		&scant.ID,
		&scant.CreatedAt,
		&scant.UpdatedAt,
		&scant.Value,
	); err != nil {
		return err
	}
	t.ID = scant.ID
	t.CreatedAt = scant.CreatedAt.Time
	t.UpdatedAt = scant.UpdatedAt.Time
	t.Value = scant.Value.String
	return nil
}
func ( t * Token ) FromRows ( rows * sql . Rows ) error { var scant struct { ID int CreatedAt sql . NullTime UpdatedAt sql . NullTime Value sql . NullString } if err := rows . Scan ( & scant . ID , & scant . CreatedAt , & scant . UpdatedAt , & scant . Value , ) ; err != nil { return err } t . ID = scant . ID t . CreatedAt = scant . CreatedAt . Time t . UpdatedAt = scant . UpdatedAt . Time t . Value = scant . Value . String return nil }
FromRows scans the sql response data into Token.
FromRows scans the sql response data into Token .
// the order here should be the same as in the `token.Columns`.