currencyrate

package
v0.0.0-...-5b7c39b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the currencyrate type in the database.
	Label = "currency_rate"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldSymbol holds the string denoting the symbol field in the database.
	FieldSymbol = "symbol"
	// FieldRate holds the string denoting the rate field in the database.
	FieldRate = "rate"
	// FieldExpiredAt holds the string denoting the expired_at field in the database.
	FieldExpiredAt = "expired_at"
	// Table holds the table name of the currencyrate in the database.
	Table = "currency_rates"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for currencyrate fields.

Functions

func And

func And(predicates ...predicate.CurrencyRate) predicate.CurrencyRate

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.CurrencyRate

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.CurrencyRate

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.CurrencyRate

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.CurrencyRate

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.CurrencyRate

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.CurrencyRate

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.CurrencyRate

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.CurrencyRate

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.CurrencyRate

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func ExpiredAt

func ExpiredAt(v time.Time) predicate.CurrencyRate

ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.

func ExpiredAtEQ

func ExpiredAtEQ(v time.Time) predicate.CurrencyRate

ExpiredAtEQ applies the EQ predicate on the "expired_at" field.

func ExpiredAtGT

func ExpiredAtGT(v time.Time) predicate.CurrencyRate

ExpiredAtGT applies the GT predicate on the "expired_at" field.

func ExpiredAtGTE

func ExpiredAtGTE(v time.Time) predicate.CurrencyRate

ExpiredAtGTE applies the GTE predicate on the "expired_at" field.

func ExpiredAtIn

func ExpiredAtIn(vs ...time.Time) predicate.CurrencyRate

ExpiredAtIn applies the In predicate on the "expired_at" field.

func ExpiredAtIsNil

func ExpiredAtIsNil() predicate.CurrencyRate

ExpiredAtIsNil applies the IsNil predicate on the "expired_at" field.

func ExpiredAtLT

func ExpiredAtLT(v time.Time) predicate.CurrencyRate

ExpiredAtLT applies the LT predicate on the "expired_at" field.

func ExpiredAtLTE

func ExpiredAtLTE(v time.Time) predicate.CurrencyRate

ExpiredAtLTE applies the LTE predicate on the "expired_at" field.

func ExpiredAtNEQ

func ExpiredAtNEQ(v time.Time) predicate.CurrencyRate

ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.

func ExpiredAtNotIn

func ExpiredAtNotIn(vs ...time.Time) predicate.CurrencyRate

ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.

func ExpiredAtNotNil

func ExpiredAtNotNil() predicate.CurrencyRate

ExpiredAtNotNil applies the NotNil predicate on the "expired_at" field.

func ID

func ID(id int) predicate.CurrencyRate

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.CurrencyRate

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.CurrencyRate

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.CurrencyRate

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.CurrencyRate

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.CurrencyRate

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.CurrencyRate

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.CurrencyRate

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.CurrencyRate

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.CurrencyRate) predicate.CurrencyRate

Or groups predicates with the OR operator between them.

func Rate

Rate applies equality check predicate on the "rate" field. It's identical to RateEQ.

func RateContains

func RateContains(v string) predicate.CurrencyRate

RateContains applies the Contains predicate on the "rate" field.

func RateContainsFold

func RateContainsFold(v string) predicate.CurrencyRate

RateContainsFold applies the ContainsFold predicate on the "rate" field.

func RateEQ

func RateEQ(v string) predicate.CurrencyRate

RateEQ applies the EQ predicate on the "rate" field.

func RateEqualFold

func RateEqualFold(v string) predicate.CurrencyRate

RateEqualFold applies the EqualFold predicate on the "rate" field.

func RateGT

func RateGT(v string) predicate.CurrencyRate

RateGT applies the GT predicate on the "rate" field.

func RateGTE

func RateGTE(v string) predicate.CurrencyRate

RateGTE applies the GTE predicate on the "rate" field.

func RateHasPrefix

func RateHasPrefix(v string) predicate.CurrencyRate

RateHasPrefix applies the HasPrefix predicate on the "rate" field.

func RateHasSuffix

func RateHasSuffix(v string) predicate.CurrencyRate

RateHasSuffix applies the HasSuffix predicate on the "rate" field.

func RateIn

func RateIn(vs ...string) predicate.CurrencyRate

RateIn applies the In predicate on the "rate" field.

func RateLT

func RateLT(v string) predicate.CurrencyRate

RateLT applies the LT predicate on the "rate" field.

func RateLTE

func RateLTE(v string) predicate.CurrencyRate

RateLTE applies the LTE predicate on the "rate" field.

func RateNEQ

func RateNEQ(v string) predicate.CurrencyRate

RateNEQ applies the NEQ predicate on the "rate" field.

func RateNotIn

func RateNotIn(vs ...string) predicate.CurrencyRate

RateNotIn applies the NotIn predicate on the "rate" field.

func Symbol

func Symbol(v string) predicate.CurrencyRate

Symbol applies equality check predicate on the "symbol" field. It's identical to SymbolEQ.

func SymbolContains

func SymbolContains(v string) predicate.CurrencyRate

SymbolContains applies the Contains predicate on the "symbol" field.

func SymbolContainsFold

func SymbolContainsFold(v string) predicate.CurrencyRate

SymbolContainsFold applies the ContainsFold predicate on the "symbol" field.

func SymbolEQ

func SymbolEQ(v string) predicate.CurrencyRate

SymbolEQ applies the EQ predicate on the "symbol" field.

func SymbolEqualFold

func SymbolEqualFold(v string) predicate.CurrencyRate

SymbolEqualFold applies the EqualFold predicate on the "symbol" field.

func SymbolGT

func SymbolGT(v string) predicate.CurrencyRate

SymbolGT applies the GT predicate on the "symbol" field.

func SymbolGTE

func SymbolGTE(v string) predicate.CurrencyRate

SymbolGTE applies the GTE predicate on the "symbol" field.

func SymbolHasPrefix

func SymbolHasPrefix(v string) predicate.CurrencyRate

SymbolHasPrefix applies the HasPrefix predicate on the "symbol" field.

func SymbolHasSuffix

func SymbolHasSuffix(v string) predicate.CurrencyRate

SymbolHasSuffix applies the HasSuffix predicate on the "symbol" field.

func SymbolIn

func SymbolIn(vs ...string) predicate.CurrencyRate

SymbolIn applies the In predicate on the "symbol" field.

func SymbolLT

func SymbolLT(v string) predicate.CurrencyRate

SymbolLT applies the LT predicate on the "symbol" field.

func SymbolLTE

func SymbolLTE(v string) predicate.CurrencyRate

SymbolLTE applies the LTE predicate on the "symbol" field.

func SymbolNEQ

func SymbolNEQ(v string) predicate.CurrencyRate

SymbolNEQ applies the NEQ predicate on the "symbol" field.

func SymbolNotIn

func SymbolNotIn(vs ...string) predicate.CurrencyRate

SymbolNotIn applies the NotIn predicate on the "symbol" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.CurrencyRate

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.CurrencyRate

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.CurrencyRate

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.CurrencyRate

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.CurrencyRate

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.CurrencyRate

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.CurrencyRate

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.CurrencyRate

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.CurrencyRate

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the CurrencyRate queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByExpiredAt

func ByExpiredAt(opts ...sql.OrderTermOption) OrderOption

ByExpiredAt orders the results by the expired_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByRate

func ByRate(opts ...sql.OrderTermOption) OrderOption

ByRate orders the results by the rate field.

func BySymbol

func BySymbol(opts ...sql.OrderTermOption) OrderOption

BySymbol orders the results by the symbol field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL