Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Coin) predicate.Coin
- func DescIsNil() predicate.Coin
- func DescNotNil() predicate.Coin
- func GoldConversionRate(v float64) predicate.Coin
- func GoldConversionRateEQ(v float64) predicate.Coin
- func GoldConversionRateGT(v float64) predicate.Coin
- func GoldConversionRateGTE(v float64) predicate.Coin
- func GoldConversionRateIn(vs ...float64) predicate.Coin
- func GoldConversionRateLT(v float64) predicate.Coin
- func GoldConversionRateLTE(v float64) predicate.Coin
- func GoldConversionRateNEQ(v float64) predicate.Coin
- func GoldConversionRateNotIn(vs ...float64) predicate.Coin
- func HasCosts() predicate.Coin
- func HasCostsWith(preds ...predicate.Cost) predicate.Coin
- func ID(id int) predicate.Coin
- func IDEQ(id int) predicate.Coin
- func IDGT(id int) predicate.Coin
- func IDGTE(id int) predicate.Coin
- func IDIn(ids ...int) predicate.Coin
- func IDLT(id int) predicate.Coin
- func IDLTE(id int) predicate.Coin
- func IDNEQ(id int) predicate.Coin
- func IDNotIn(ids ...int) predicate.Coin
- func Indx(v string) predicate.Coin
- func IndxContains(v string) predicate.Coin
- func IndxContainsFold(v string) predicate.Coin
- func IndxEQ(v string) predicate.Coin
- func IndxEqualFold(v string) predicate.Coin
- func IndxGT(v string) predicate.Coin
- func IndxGTE(v string) predicate.Coin
- func IndxHasPrefix(v string) predicate.Coin
- func IndxHasSuffix(v string) predicate.Coin
- func IndxIn(vs ...string) predicate.Coin
- func IndxLT(v string) predicate.Coin
- func IndxLTE(v string) predicate.Coin
- func IndxNEQ(v string) predicate.Coin
- func IndxNotIn(vs ...string) predicate.Coin
- func Name(v string) predicate.Coin
- func NameContains(v string) predicate.Coin
- func NameContainsFold(v string) predicate.Coin
- func NameEQ(v string) predicate.Coin
- func NameEqualFold(v string) predicate.Coin
- func NameGT(v string) predicate.Coin
- func NameGTE(v string) predicate.Coin
- func NameHasPrefix(v string) predicate.Coin
- func NameHasSuffix(v string) predicate.Coin
- func NameIn(vs ...string) predicate.Coin
- func NameLT(v string) predicate.Coin
- func NameLTE(v string) predicate.Coin
- func NameNEQ(v string) predicate.Coin
- func NameNotIn(vs ...string) predicate.Coin
- func Not(p predicate.Coin) predicate.Coin
- func Or(predicates ...predicate.Coin) predicate.Coin
- func ValidColumn(column string) bool
- type OrderOption
- func ByCosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGoldConversionRate(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the coin type in the database. Label = "coin" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIndx holds the string denoting the indx field in the database. FieldIndx = "indx" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // FieldGoldConversionRate holds the string denoting the gold_conversion_rate field in the database. FieldGoldConversionRate = "gold_conversion_rate" // EdgeCosts holds the string denoting the costs edge name in mutations. EdgeCosts = "costs" // Table holds the table name of the coin in the database. Table = "coins" // CostsTable is the table that holds the costs relation/edge. CostsTable = "costs" // CostsInverseTable is the table name for the Cost entity. // It exists in this package in order to avoid circular dependency with the "cost" package. CostsInverseTable = "costs" // CostsColumn is the table column denoting the costs relation/edge. CostsColumn = "cost_coin" )
Variables ¶
var ( // IndxValidator is a validator for the "indx" field. It is called by the builders before save. IndxValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
var Columns = []string{ FieldID, FieldIndx, FieldName, FieldDesc, FieldGoldConversionRate, }
Columns holds all SQL columns for coin fields.
Functions ¶
func DescNotNil ¶
DescNotNil applies the NotNil predicate on the "desc" field.
func GoldConversionRate ¶
GoldConversionRate applies equality check predicate on the "gold_conversion_rate" field. It's identical to GoldConversionRateEQ.
func GoldConversionRateEQ ¶
GoldConversionRateEQ applies the EQ predicate on the "gold_conversion_rate" field.
func GoldConversionRateGT ¶
GoldConversionRateGT applies the GT predicate on the "gold_conversion_rate" field.
func GoldConversionRateGTE ¶
GoldConversionRateGTE applies the GTE predicate on the "gold_conversion_rate" field.
func GoldConversionRateIn ¶
GoldConversionRateIn applies the In predicate on the "gold_conversion_rate" field.
func GoldConversionRateLT ¶
GoldConversionRateLT applies the LT predicate on the "gold_conversion_rate" field.
func GoldConversionRateLTE ¶
GoldConversionRateLTE applies the LTE predicate on the "gold_conversion_rate" field.
func GoldConversionRateNEQ ¶
GoldConversionRateNEQ applies the NEQ predicate on the "gold_conversion_rate" field.
func GoldConversionRateNotIn ¶
GoldConversionRateNotIn applies the NotIn predicate on the "gold_conversion_rate" field.
func HasCostsWith ¶
HasCostsWith applies the HasEdge predicate on the "costs" edge with a given conditions (other predicates).
func IndxContains ¶
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEqualFold ¶
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxHasPrefix ¶
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
IndxHasSuffix applies the HasSuffix predicate on the "indx" field.
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Coin queries.
func ByCosts ¶
func ByCosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCosts orders the results by costs terms.
func ByCostsCount ¶
func ByCostsCount(opts ...sql.OrderTermOption) OrderOption
ByCostsCount orders the results by costs count.
func ByGoldConversionRate ¶
func ByGoldConversionRate(opts ...sql.OrderTermOption) OrderOption
ByGoldConversionRate orders the results by the gold_conversion_rate field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIndx ¶
func ByIndx(opts ...sql.OrderTermOption) OrderOption
ByIndx orders the results by the indx field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.