Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Token) predicate.Token
- func BaseCurrency(v string) predicate.Token
- func BaseCurrencyContains(v string) predicate.Token
- func BaseCurrencyContainsFold(v string) predicate.Token
- func BaseCurrencyEQ(v string) predicate.Token
- func BaseCurrencyEqualFold(v string) predicate.Token
- func BaseCurrencyGT(v string) predicate.Token
- func BaseCurrencyGTE(v string) predicate.Token
- func BaseCurrencyHasPrefix(v string) predicate.Token
- func BaseCurrencyHasSuffix(v string) predicate.Token
- func BaseCurrencyIn(vs ...string) predicate.Token
- func BaseCurrencyLT(v string) predicate.Token
- func BaseCurrencyLTE(v string) predicate.Token
- func BaseCurrencyNEQ(v string) predicate.Token
- func BaseCurrencyNotIn(vs ...string) predicate.Token
- func ContractAddress(v string) predicate.Token
- func ContractAddressContains(v string) predicate.Token
- func ContractAddressContainsFold(v string) predicate.Token
- func ContractAddressEQ(v string) predicate.Token
- func ContractAddressEqualFold(v string) predicate.Token
- func ContractAddressGT(v string) predicate.Token
- func ContractAddressGTE(v string) predicate.Token
- func ContractAddressHasPrefix(v string) predicate.Token
- func ContractAddressHasSuffix(v string) predicate.Token
- func ContractAddressIn(vs ...string) predicate.Token
- func ContractAddressLT(v string) predicate.Token
- func ContractAddressLTE(v string) predicate.Token
- func ContractAddressNEQ(v string) predicate.Token
- func ContractAddressNotIn(vs ...string) predicate.Token
- func CreatedAt(v time.Time) predicate.Token
- func CreatedAtEQ(v time.Time) predicate.Token
- func CreatedAtGT(v time.Time) predicate.Token
- func CreatedAtGTE(v time.Time) predicate.Token
- func CreatedAtIn(vs ...time.Time) predicate.Token
- func CreatedAtLT(v time.Time) predicate.Token
- func CreatedAtLTE(v time.Time) predicate.Token
- func CreatedAtNEQ(v time.Time) predicate.Token
- func CreatedAtNotIn(vs ...time.Time) predicate.Token
- func Decimals(v int8) predicate.Token
- func DecimalsEQ(v int8) predicate.Token
- func DecimalsGT(v int8) predicate.Token
- func DecimalsGTE(v int8) predicate.Token
- func DecimalsIn(vs ...int8) predicate.Token
- func DecimalsLT(v int8) predicate.Token
- func DecimalsLTE(v int8) predicate.Token
- func DecimalsNEQ(v int8) predicate.Token
- func DecimalsNotIn(vs ...int8) predicate.Token
- func HasLockPaymentOrders() predicate.Token
- func HasLockPaymentOrdersWith(preds ...predicate.LockPaymentOrder) predicate.Token
- func HasNetwork() predicate.Token
- func HasNetworkWith(preds ...predicate.Network) predicate.Token
- func HasPaymentOrders() predicate.Token
- func HasPaymentOrdersWith(preds ...predicate.PaymentOrder) predicate.Token
- func HasProviderOrderTokens() predicate.Token
- func HasProviderOrderTokensWith(preds ...predicate.ProviderOrderToken) predicate.Token
- func HasSenderOrderTokens() predicate.Token
- func HasSenderOrderTokensWith(preds ...predicate.SenderOrderToken) predicate.Token
- func ID(id int) predicate.Token
- func IDEQ(id int) predicate.Token
- func IDGT(id int) predicate.Token
- func IDGTE(id int) predicate.Token
- func IDIn(ids ...int) predicate.Token
- func IDLT(id int) predicate.Token
- func IDLTE(id int) predicate.Token
- func IDNEQ(id int) predicate.Token
- func IDNotIn(ids ...int) predicate.Token
- func IsEnabled(v bool) predicate.Token
- func IsEnabledEQ(v bool) predicate.Token
- func IsEnabledNEQ(v bool) predicate.Token
- func Not(p predicate.Token) predicate.Token
- func Or(predicates ...predicate.Token) predicate.Token
- func Symbol(v string) predicate.Token
- func SymbolContains(v string) predicate.Token
- func SymbolContainsFold(v string) predicate.Token
- func SymbolEQ(v string) predicate.Token
- func SymbolEqualFold(v string) predicate.Token
- func SymbolGT(v string) predicate.Token
- func SymbolGTE(v string) predicate.Token
- func SymbolHasPrefix(v string) predicate.Token
- func SymbolHasSuffix(v string) predicate.Token
- func SymbolIn(vs ...string) predicate.Token
- func SymbolLT(v string) predicate.Token
- func SymbolLTE(v string) predicate.Token
- func SymbolNEQ(v string) predicate.Token
- func SymbolNotIn(vs ...string) predicate.Token
- func UpdatedAt(v time.Time) predicate.Token
- func UpdatedAtEQ(v time.Time) predicate.Token
- func UpdatedAtGT(v time.Time) predicate.Token
- func UpdatedAtGTE(v time.Time) predicate.Token
- func UpdatedAtIn(vs ...time.Time) predicate.Token
- func UpdatedAtLT(v time.Time) predicate.Token
- func UpdatedAtLTE(v time.Time) predicate.Token
- func UpdatedAtNEQ(v time.Time) predicate.Token
- func UpdatedAtNotIn(vs ...time.Time) predicate.Token
- func ValidColumn(column string) bool
- type OrderOption
- func ByBaseCurrency(opts ...sql.OrderTermOption) OrderOption
- func ByContractAddress(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDecimals(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByLockPaymentOrders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLockPaymentOrdersCount(opts ...sql.OrderTermOption) OrderOption
- func ByNetworkField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPaymentOrders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPaymentOrdersCount(opts ...sql.OrderTermOption) OrderOption
- func ByProviderOrderTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProviderOrderTokensCount(opts ...sql.OrderTermOption) OrderOption
- func BySenderOrderTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySenderOrderTokensCount(opts ...sql.OrderTermOption) OrderOption
- func BySymbol(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the token type in the database. Label = "token" // 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" // FieldContractAddress holds the string denoting the contract_address field in the database. FieldContractAddress = "contract_address" // FieldDecimals holds the string denoting the decimals field in the database. FieldDecimals = "decimals" // FieldIsEnabled holds the string denoting the is_enabled field in the database. FieldIsEnabled = "is_enabled" // FieldBaseCurrency holds the string denoting the base_currency field in the database. FieldBaseCurrency = "base_currency" // EdgeNetwork holds the string denoting the network edge name in mutations. EdgeNetwork = "network" // EdgePaymentOrders holds the string denoting the payment_orders edge name in mutations. EdgePaymentOrders = "payment_orders" // EdgeLockPaymentOrders holds the string denoting the lock_payment_orders edge name in mutations. EdgeLockPaymentOrders = "lock_payment_orders" // EdgeSenderOrderTokens holds the string denoting the sender_order_tokens edge name in mutations. EdgeSenderOrderTokens = "sender_order_tokens" // EdgeProviderOrderTokens holds the string denoting the provider_order_tokens edge name in mutations. EdgeProviderOrderTokens = "provider_order_tokens" // Table holds the table name of the token in the database. Table = "tokens" // NetworkTable is the table that holds the network relation/edge. NetworkTable = "tokens" // NetworkInverseTable is the table name for the Network entity. // It exists in this package in order to avoid circular dependency with the "network" package. NetworkInverseTable = "networks" // NetworkColumn is the table column denoting the network relation/edge. NetworkColumn = "network_tokens" // PaymentOrdersTable is the table that holds the payment_orders relation/edge. PaymentOrdersTable = "payment_orders" // PaymentOrdersInverseTable is the table name for the PaymentOrder entity. // It exists in this package in order to avoid circular dependency with the "paymentorder" package. PaymentOrdersInverseTable = "payment_orders" // PaymentOrdersColumn is the table column denoting the payment_orders relation/edge. PaymentOrdersColumn = "token_payment_orders" // LockPaymentOrdersTable is the table that holds the lock_payment_orders relation/edge. LockPaymentOrdersTable = "lock_payment_orders" // LockPaymentOrdersInverseTable is the table name for the LockPaymentOrder entity. // It exists in this package in order to avoid circular dependency with the "lockpaymentorder" package. LockPaymentOrdersInverseTable = "lock_payment_orders" // LockPaymentOrdersColumn is the table column denoting the lock_payment_orders relation/edge. LockPaymentOrdersColumn = "token_lock_payment_orders" // SenderOrderTokensTable is the table that holds the sender_order_tokens relation/edge. SenderOrderTokensTable = "sender_order_tokens" // SenderOrderTokensInverseTable is the table name for the SenderOrderToken entity. // It exists in this package in order to avoid circular dependency with the "senderordertoken" package. SenderOrderTokensInverseTable = "sender_order_tokens" // SenderOrderTokensColumn is the table column denoting the sender_order_tokens relation/edge. SenderOrderTokensColumn = "token_sender_order_tokens" // ProviderOrderTokensTable is the table that holds the provider_order_tokens relation/edge. ProviderOrderTokensTable = "provider_order_tokens" // ProviderOrderTokensInverseTable is the table name for the ProviderOrderToken entity. // It exists in this package in order to avoid circular dependency with the "providerordertoken" package. ProviderOrderTokensInverseTable = "provider_order_tokens" // ProviderOrderTokensColumn is the table column denoting the provider_order_tokens relation/edge. ProviderOrderTokensColumn = "token_provider_order_tokens" )
Variables ¶
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 // SymbolValidator is a validator for the "symbol" field. It is called by the builders before save. SymbolValidator func(string) error // ContractAddressValidator is a validator for the "contract_address" field. It is called by the builders before save. ContractAddressValidator func(string) error // DefaultIsEnabled holds the default value on creation for the "is_enabled" field. DefaultIsEnabled bool // DefaultBaseCurrency holds the default value on creation for the "base_currency" field. DefaultBaseCurrency string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldSymbol, FieldContractAddress, FieldDecimals, FieldIsEnabled, FieldBaseCurrency, }
Columns holds all SQL columns for token fields.
var ForeignKeys = []string{
"network_tokens",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "tokens" table and are not defined as standalone fields in the schema.
Functions ¶
func BaseCurrency ¶
BaseCurrency applies equality check predicate on the "base_currency" field. It's identical to BaseCurrencyEQ.
func BaseCurrencyContains ¶
BaseCurrencyContains applies the Contains predicate on the "base_currency" field.
func BaseCurrencyContainsFold ¶
BaseCurrencyContainsFold applies the ContainsFold predicate on the "base_currency" field.
func BaseCurrencyEQ ¶
BaseCurrencyEQ applies the EQ predicate on the "base_currency" field.
func BaseCurrencyEqualFold ¶
BaseCurrencyEqualFold applies the EqualFold predicate on the "base_currency" field.
func BaseCurrencyGT ¶
BaseCurrencyGT applies the GT predicate on the "base_currency" field.
func BaseCurrencyGTE ¶
BaseCurrencyGTE applies the GTE predicate on the "base_currency" field.
func BaseCurrencyHasPrefix ¶
BaseCurrencyHasPrefix applies the HasPrefix predicate on the "base_currency" field.
func BaseCurrencyHasSuffix ¶
BaseCurrencyHasSuffix applies the HasSuffix predicate on the "base_currency" field.
func BaseCurrencyIn ¶
BaseCurrencyIn applies the In predicate on the "base_currency" field.
func BaseCurrencyLT ¶
BaseCurrencyLT applies the LT predicate on the "base_currency" field.
func BaseCurrencyLTE ¶
BaseCurrencyLTE applies the LTE predicate on the "base_currency" field.
func BaseCurrencyNEQ ¶
BaseCurrencyNEQ applies the NEQ predicate on the "base_currency" field.
func BaseCurrencyNotIn ¶
BaseCurrencyNotIn applies the NotIn predicate on the "base_currency" field.
func ContractAddress ¶
ContractAddress applies equality check predicate on the "contract_address" field. It's identical to ContractAddressEQ.
func ContractAddressContains ¶
ContractAddressContains applies the Contains predicate on the "contract_address" field.
func ContractAddressContainsFold ¶
ContractAddressContainsFold applies the ContainsFold predicate on the "contract_address" field.
func ContractAddressEQ ¶
ContractAddressEQ applies the EQ predicate on the "contract_address" field.
func ContractAddressEqualFold ¶
ContractAddressEqualFold applies the EqualFold predicate on the "contract_address" field.
func ContractAddressGT ¶
ContractAddressGT applies the GT predicate on the "contract_address" field.
func ContractAddressGTE ¶
ContractAddressGTE applies the GTE predicate on the "contract_address" field.
func ContractAddressHasPrefix ¶
ContractAddressHasPrefix applies the HasPrefix predicate on the "contract_address" field.
func ContractAddressHasSuffix ¶
ContractAddressHasSuffix applies the HasSuffix predicate on the "contract_address" field.
func ContractAddressIn ¶
ContractAddressIn applies the In predicate on the "contract_address" field.
func ContractAddressLT ¶
ContractAddressLT applies the LT predicate on the "contract_address" field.
func ContractAddressLTE ¶
ContractAddressLTE applies the LTE predicate on the "contract_address" field.
func ContractAddressNEQ ¶
ContractAddressNEQ applies the NEQ predicate on the "contract_address" field.
func ContractAddressNotIn ¶
ContractAddressNotIn applies the NotIn predicate on the "contract_address" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Decimals ¶
Decimals applies equality check predicate on the "decimals" field. It's identical to DecimalsEQ.
func DecimalsEQ ¶
DecimalsEQ applies the EQ predicate on the "decimals" field.
func DecimalsGT ¶
DecimalsGT applies the GT predicate on the "decimals" field.
func DecimalsGTE ¶
DecimalsGTE applies the GTE predicate on the "decimals" field.
func DecimalsIn ¶
DecimalsIn applies the In predicate on the "decimals" field.
func DecimalsLT ¶
DecimalsLT applies the LT predicate on the "decimals" field.
func DecimalsLTE ¶
DecimalsLTE applies the LTE predicate on the "decimals" field.
func DecimalsNEQ ¶
DecimalsNEQ applies the NEQ predicate on the "decimals" field.
func DecimalsNotIn ¶
DecimalsNotIn applies the NotIn predicate on the "decimals" field.
func HasLockPaymentOrders ¶
HasLockPaymentOrders applies the HasEdge predicate on the "lock_payment_orders" edge.
func HasLockPaymentOrdersWith ¶
func HasLockPaymentOrdersWith(preds ...predicate.LockPaymentOrder) predicate.Token
HasLockPaymentOrdersWith applies the HasEdge predicate on the "lock_payment_orders" edge with a given conditions (other predicates).
func HasNetwork ¶
HasNetwork applies the HasEdge predicate on the "network" edge.
func HasNetworkWith ¶
HasNetworkWith applies the HasEdge predicate on the "network" edge with a given conditions (other predicates).
func HasPaymentOrders ¶
HasPaymentOrders applies the HasEdge predicate on the "payment_orders" edge.
func HasPaymentOrdersWith ¶
func HasPaymentOrdersWith(preds ...predicate.PaymentOrder) predicate.Token
HasPaymentOrdersWith applies the HasEdge predicate on the "payment_orders" edge with a given conditions (other predicates).
func HasProviderOrderTokens ¶
HasProviderOrderTokens applies the HasEdge predicate on the "provider_order_tokens" edge.
func HasProviderOrderTokensWith ¶
func HasProviderOrderTokensWith(preds ...predicate.ProviderOrderToken) predicate.Token
HasProviderOrderTokensWith applies the HasEdge predicate on the "provider_order_tokens" edge with a given conditions (other predicates).
func HasSenderOrderTokens ¶
HasSenderOrderTokens applies the HasEdge predicate on the "sender_order_tokens" edge.
func HasSenderOrderTokensWith ¶
func HasSenderOrderTokensWith(preds ...predicate.SenderOrderToken) predicate.Token
HasSenderOrderTokensWith applies the HasEdge predicate on the "sender_order_tokens" edge with a given conditions (other predicates).
func IsEnabled ¶
IsEnabled applies equality check predicate on the "is_enabled" field. It's identical to IsEnabledEQ.
func IsEnabledEQ ¶
IsEnabledEQ applies the EQ predicate on the "is_enabled" field.
func IsEnabledNEQ ¶
IsEnabledNEQ applies the NEQ predicate on the "is_enabled" field.
func Symbol ¶
Symbol applies equality check predicate on the "symbol" field. It's identical to SymbolEQ.
func SymbolContains ¶
SymbolContains applies the Contains predicate on the "symbol" field.
func SymbolContainsFold ¶
SymbolContainsFold applies the ContainsFold predicate on the "symbol" field.
func SymbolEqualFold ¶
SymbolEqualFold applies the EqualFold predicate on the "symbol" field.
func SymbolHasPrefix ¶
SymbolHasPrefix applies the HasPrefix predicate on the "symbol" field.
func SymbolHasSuffix ¶
SymbolHasSuffix applies the HasSuffix predicate on the "symbol" field.
func SymbolNotIn ¶
SymbolNotIn applies the NotIn predicate on the "symbol" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Token queries.
func ByBaseCurrency ¶
func ByBaseCurrency(opts ...sql.OrderTermOption) OrderOption
ByBaseCurrency orders the results by the base_currency field.
func ByContractAddress ¶
func ByContractAddress(opts ...sql.OrderTermOption) OrderOption
ByContractAddress orders the results by the contract_address field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDecimals ¶
func ByDecimals(opts ...sql.OrderTermOption) OrderOption
ByDecimals orders the results by the decimals field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsEnabled ¶
func ByIsEnabled(opts ...sql.OrderTermOption) OrderOption
ByIsEnabled orders the results by the is_enabled field.
func ByLockPaymentOrders ¶
func ByLockPaymentOrders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLockPaymentOrders orders the results by lock_payment_orders terms.
func ByLockPaymentOrdersCount ¶
func ByLockPaymentOrdersCount(opts ...sql.OrderTermOption) OrderOption
ByLockPaymentOrdersCount orders the results by lock_payment_orders count.
func ByNetworkField ¶
func ByNetworkField(field string, opts ...sql.OrderTermOption) OrderOption
ByNetworkField orders the results by network field.
func ByPaymentOrders ¶
func ByPaymentOrders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPaymentOrders orders the results by payment_orders terms.
func ByPaymentOrdersCount ¶
func ByPaymentOrdersCount(opts ...sql.OrderTermOption) OrderOption
ByPaymentOrdersCount orders the results by payment_orders count.
func ByProviderOrderTokens ¶
func ByProviderOrderTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProviderOrderTokens orders the results by provider_order_tokens terms.
func ByProviderOrderTokensCount ¶
func ByProviderOrderTokensCount(opts ...sql.OrderTermOption) OrderOption
ByProviderOrderTokensCount orders the results by provider_order_tokens count.
func BySenderOrderTokens ¶
func BySenderOrderTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySenderOrderTokens orders the results by sender_order_tokens terms.
func BySenderOrderTokensCount ¶
func BySenderOrderTokensCount(opts ...sql.OrderTermOption) OrderOption
BySenderOrderTokensCount orders the results by sender_order_tokens count.
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.