Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Currency) predicate.Currency
- func HasCurrencyBase() predicate.Currency
- func HasCurrencyBaseWith(preds ...predicate.TradingPair) predicate.Currency
- func HasCurrencyCounter() predicate.Currency
- func HasCurrencyCounterWith(preds ...predicate.TradingPair) predicate.Currency
- func ID(id int) predicate.Currency
- func IDEQ(id int) predicate.Currency
- func IDGT(id int) predicate.Currency
- func IDGTE(id int) predicate.Currency
- func IDIn(ids ...int) predicate.Currency
- func IDLT(id int) predicate.Currency
- func IDLTE(id int) predicate.Currency
- func IDNEQ(id int) predicate.Currency
- func IDNotIn(ids ...int) predicate.Currency
- func Name(v string) predicate.Currency
- func NameContains(v string) predicate.Currency
- func NameContainsFold(v string) predicate.Currency
- func NameEQ(v string) predicate.Currency
- func NameEqualFold(v string) predicate.Currency
- func NameGT(v string) predicate.Currency
- func NameGTE(v string) predicate.Currency
- func NameHasPrefix(v string) predicate.Currency
- func NameHasSuffix(v string) predicate.Currency
- func NameIn(vs ...string) predicate.Currency
- func NameIsNil() predicate.Currency
- func NameLT(v string) predicate.Currency
- func NameLTE(v string) predicate.Currency
- func NameNEQ(v string) predicate.Currency
- func NameNotIn(vs ...string) predicate.Currency
- func NameNotNil() predicate.Currency
- func Not(p predicate.Currency) predicate.Currency
- func Or(predicates ...predicate.Currency) predicate.Currency
- func Symbol(v string) predicate.Currency
- func SymbolContains(v string) predicate.Currency
- func SymbolContainsFold(v string) predicate.Currency
- func SymbolEQ(v string) predicate.Currency
- func SymbolEqualFold(v string) predicate.Currency
- func SymbolGT(v string) predicate.Currency
- func SymbolGTE(v string) predicate.Currency
- func SymbolHasPrefix(v string) predicate.Currency
- func SymbolHasSuffix(v string) predicate.Currency
- func SymbolIn(vs ...string) predicate.Currency
- func SymbolLT(v string) predicate.Currency
- func SymbolLTE(v string) predicate.Currency
- func SymbolNEQ(v string) predicate.Currency
- func SymbolNotIn(vs ...string) predicate.Currency
- func TypeEQ(v Type) predicate.Currency
- func TypeIn(vs ...Type) predicate.Currency
- func TypeNEQ(v Type) predicate.Currency
- func TypeNotIn(vs ...Type) predicate.Currency
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the currency type in the database. Label = "currency" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSymbol holds the string denoting the symbol field in the database. FieldSymbol = "symbol" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeCurrencyBase holds the string denoting the currency_base edge name in mutations. EdgeCurrencyBase = "currency_base" // EdgeCurrencyCounter holds the string denoting the currency_counter edge name in mutations. EdgeCurrencyCounter = "currency_counter" // Table holds the table name of the currency in the database. Table = "currencies" // CurrencyBaseTable is the table that holds the currency_base relation/edge. CurrencyBaseTable = "trading_pairs" // CurrencyBaseInverseTable is the table name for the TradingPair entity. // It exists in this package in order to avoid circular dependency with the "tradingpair" package. CurrencyBaseInverseTable = "trading_pairs" // CurrencyBaseColumn is the table column denoting the currency_base relation/edge. CurrencyBaseColumn = "currency_currency_base" // CurrencyCounterTable is the table that holds the currency_counter relation/edge. CurrencyCounterTable = "trading_pairs" // CurrencyCounterInverseTable is the table name for the TradingPair entity. // It exists in this package in order to avoid circular dependency with the "tradingpair" package. CurrencyCounterInverseTable = "trading_pairs" // CurrencyCounterColumn is the table column denoting the currency_counter relation/edge. CurrencyCounterColumn = "currency_currency_counter" )
Variables ¶
var Columns = []string{ FieldID, FieldSymbol, FieldName, FieldType, }
Columns holds all SQL columns for currency fields.
Functions ¶
func HasCurrencyBase ¶
HasCurrencyBase applies the HasEdge predicate on the "currency_base" edge.
func HasCurrencyBaseWith ¶
func HasCurrencyBaseWith(preds ...predicate.TradingPair) predicate.Currency
HasCurrencyBaseWith applies the HasEdge predicate on the "currency_base" edge with a given conditions (other predicates).
func HasCurrencyCounter ¶
HasCurrencyCounter applies the HasEdge predicate on the "currency_counter" edge.
func HasCurrencyCounterWith ¶
func HasCurrencyCounterWith(preds ...predicate.TradingPair) predicate.Currency
HasCurrencyCounterWith applies the HasEdge predicate on the "currency_counter" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" 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 TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Type ¶
type Type string
Type defines the type for the "type" enum field.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.