Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Coin) predicate.Coin
- func Desc(v string) predicate.Coin
- func DescContains(v string) predicate.Coin
- func DescContainsFold(v string) predicate.Coin
- func DescEQ(v string) predicate.Coin
- func DescEqualFold(v string) predicate.Coin
- func DescGT(v string) predicate.Coin
- func DescGTE(v string) predicate.Coin
- func DescHasPrefix(v string) predicate.Coin
- func DescHasSuffix(v string) predicate.Coin
- func DescIn(vs ...string) predicate.Coin
- func DescLT(v string) predicate.Coin
- func DescLTE(v string) predicate.Coin
- func DescNEQ(v string) predicate.Coin
- func DescNotIn(vs ...string) 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 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 Not(p predicate.Coin) predicate.Coin
- func Or(predicates ...predicate.Coin) predicate.Coin
- func ValidColumn(column string) bool
- type 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" // 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" // Table holds the table name of the coin in the database. Table = "coins" )
Variables ¶
var Columns = []string{ FieldID, FieldIndx, FieldDesc, FieldGoldConversionRate, }
Columns holds all SQL columns for coin fields.
Functions ¶
func DescContains ¶
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEqualFold ¶
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescHasPrefix ¶
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
DescHasSuffix applies the HasSuffix 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 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 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 ByDesc ¶
func ByDesc(opts ...sql.OrderTermOption) OrderOption
ByDesc orders the results by the desc field.
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.