coin

package
v0.0.0-...-c5055fb Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for coin fields.

Functions

func And

func And(predicates ...predicate.Coin) predicate.Coin

And groups predicates with the AND operator between them.

func Desc

func Desc(v string) predicate.Coin

Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.

func DescContains

func DescContains(v string) predicate.Coin

DescContains applies the Contains predicate on the "desc" field.

func DescContainsFold

func DescContainsFold(v string) predicate.Coin

DescContainsFold applies the ContainsFold predicate on the "desc" field.

func DescEQ

func DescEQ(v string) predicate.Coin

DescEQ applies the EQ predicate on the "desc" field.

func DescEqualFold

func DescEqualFold(v string) predicate.Coin

DescEqualFold applies the EqualFold predicate on the "desc" field.

func DescGT

func DescGT(v string) predicate.Coin

DescGT applies the GT predicate on the "desc" field.

func DescGTE

func DescGTE(v string) predicate.Coin

DescGTE applies the GTE predicate on the "desc" field.

func DescHasPrefix

func DescHasPrefix(v string) predicate.Coin

DescHasPrefix applies the HasPrefix predicate on the "desc" field.

func DescHasSuffix

func DescHasSuffix(v string) predicate.Coin

DescHasSuffix applies the HasSuffix predicate on the "desc" field.

func DescIn

func DescIn(vs ...string) predicate.Coin

DescIn applies the In predicate on the "desc" field.

func DescLT

func DescLT(v string) predicate.Coin

DescLT applies the LT predicate on the "desc" field.

func DescLTE

func DescLTE(v string) predicate.Coin

DescLTE applies the LTE predicate on the "desc" field.

func DescNEQ

func DescNEQ(v string) predicate.Coin

DescNEQ applies the NEQ predicate on the "desc" field.

func DescNotIn

func DescNotIn(vs ...string) predicate.Coin

DescNotIn applies the NotIn predicate on the "desc" field.

func GoldConversionRate

func GoldConversionRate(v float64) predicate.Coin

GoldConversionRate applies equality check predicate on the "gold_conversion_rate" field. It's identical to GoldConversionRateEQ.

func GoldConversionRateEQ

func GoldConversionRateEQ(v float64) predicate.Coin

GoldConversionRateEQ applies the EQ predicate on the "gold_conversion_rate" field.

func GoldConversionRateGT

func GoldConversionRateGT(v float64) predicate.Coin

GoldConversionRateGT applies the GT predicate on the "gold_conversion_rate" field.

func GoldConversionRateGTE

func GoldConversionRateGTE(v float64) predicate.Coin

GoldConversionRateGTE applies the GTE predicate on the "gold_conversion_rate" field.

func GoldConversionRateIn

func GoldConversionRateIn(vs ...float64) predicate.Coin

GoldConversionRateIn applies the In predicate on the "gold_conversion_rate" field.

func GoldConversionRateLT

func GoldConversionRateLT(v float64) predicate.Coin

GoldConversionRateLT applies the LT predicate on the "gold_conversion_rate" field.

func GoldConversionRateLTE

func GoldConversionRateLTE(v float64) predicate.Coin

GoldConversionRateLTE applies the LTE predicate on the "gold_conversion_rate" field.

func GoldConversionRateNEQ

func GoldConversionRateNEQ(v float64) predicate.Coin

GoldConversionRateNEQ applies the NEQ predicate on the "gold_conversion_rate" field.

func GoldConversionRateNotIn

func GoldConversionRateNotIn(vs ...float64) predicate.Coin

GoldConversionRateNotIn applies the NotIn predicate on the "gold_conversion_rate" field.

func ID

func ID(id int) predicate.Coin

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Coin

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Coin

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Coin

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Coin

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Coin

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Coin

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Indx

func Indx(v string) predicate.Coin

Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.

func IndxContains

func IndxContains(v string) predicate.Coin

IndxContains applies the Contains predicate on the "indx" field.

func IndxContainsFold

func IndxContainsFold(v string) predicate.Coin

IndxContainsFold applies the ContainsFold predicate on the "indx" field.

func IndxEQ

func IndxEQ(v string) predicate.Coin

IndxEQ applies the EQ predicate on the "indx" field.

func IndxEqualFold

func IndxEqualFold(v string) predicate.Coin

IndxEqualFold applies the EqualFold predicate on the "indx" field.

func IndxGT

func IndxGT(v string) predicate.Coin

IndxGT applies the GT predicate on the "indx" field.

func IndxGTE

func IndxGTE(v string) predicate.Coin

IndxGTE applies the GTE predicate on the "indx" field.

func IndxHasPrefix

func IndxHasPrefix(v string) predicate.Coin

IndxHasPrefix applies the HasPrefix predicate on the "indx" field.

func IndxHasSuffix

func IndxHasSuffix(v string) predicate.Coin

IndxHasSuffix applies the HasSuffix predicate on the "indx" field.

func IndxIn

func IndxIn(vs ...string) predicate.Coin

IndxIn applies the In predicate on the "indx" field.

func IndxLT

func IndxLT(v string) predicate.Coin

IndxLT applies the LT predicate on the "indx" field.

func IndxLTE

func IndxLTE(v string) predicate.Coin

IndxLTE applies the LTE predicate on the "indx" field.

func IndxNEQ

func IndxNEQ(v string) predicate.Coin

IndxNEQ applies the NEQ predicate on the "indx" field.

func IndxNotIn

func IndxNotIn(vs ...string) predicate.Coin

IndxNotIn applies the NotIn predicate on the "indx" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Coin) predicate.Coin

Or groups predicates with the OR operator between them.

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 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.

Jump to

Keyboard shortcuts

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