currency

package
v0.0.0-...-fe50809 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Columns holds all SQL columns for currency fields.

Functions

func And

func And(predicates ...predicate.Currency) predicate.Currency

And groups predicates with the AND operator between them.

func HasCurrencyBase

func HasCurrencyBase() predicate.Currency

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

func HasCurrencyCounter() predicate.Currency

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 ID

func ID(id int) predicate.Currency

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Currency

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Currency

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Currency

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Currency

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Currency

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Currency

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Currency

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Currency

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Currency

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Currency

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Currency

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Currency

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Currency

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Currency

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Currency

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Currency

NameIn applies the In predicate on the "name" field.

func NameIsNil

func NameIsNil() predicate.Currency

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Currency

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Currency

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Currency

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Currency

NameNotIn applies the NotIn predicate on the "name" field.

func NameNotNil

func NameNotNil() predicate.Currency

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Currency) predicate.Currency

Or groups predicates with the OR operator between them.

func Symbol

func Symbol(v string) predicate.Currency

Symbol applies equality check predicate on the "symbol" field. It's identical to SymbolEQ.

func SymbolContains

func SymbolContains(v string) predicate.Currency

SymbolContains applies the Contains predicate on the "symbol" field.

func SymbolContainsFold

func SymbolContainsFold(v string) predicate.Currency

SymbolContainsFold applies the ContainsFold predicate on the "symbol" field.

func SymbolEQ

func SymbolEQ(v string) predicate.Currency

SymbolEQ applies the EQ predicate on the "symbol" field.

func SymbolEqualFold

func SymbolEqualFold(v string) predicate.Currency

SymbolEqualFold applies the EqualFold predicate on the "symbol" field.

func SymbolGT

func SymbolGT(v string) predicate.Currency

SymbolGT applies the GT predicate on the "symbol" field.

func SymbolGTE

func SymbolGTE(v string) predicate.Currency

SymbolGTE applies the GTE predicate on the "symbol" field.

func SymbolHasPrefix

func SymbolHasPrefix(v string) predicate.Currency

SymbolHasPrefix applies the HasPrefix predicate on the "symbol" field.

func SymbolHasSuffix

func SymbolHasSuffix(v string) predicate.Currency

SymbolHasSuffix applies the HasSuffix predicate on the "symbol" field.

func SymbolIn

func SymbolIn(vs ...string) predicate.Currency

SymbolIn applies the In predicate on the "symbol" field.

func SymbolLT

func SymbolLT(v string) predicate.Currency

SymbolLT applies the LT predicate on the "symbol" field.

func SymbolLTE

func SymbolLTE(v string) predicate.Currency

SymbolLTE applies the LTE predicate on the "symbol" field.

func SymbolNEQ

func SymbolNEQ(v string) predicate.Currency

SymbolNEQ applies the NEQ predicate on the "symbol" field.

func SymbolNotIn

func SymbolNotIn(vs ...string) predicate.Currency

SymbolNotIn applies the NotIn predicate on the "symbol" field.

func TypeEQ

func TypeEQ(v Type) predicate.Currency

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Currency

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Currency

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Currency

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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.

const (
	TypeDIGITAL Type = "DIGITAL"
	TypeFIAT    Type = "FIAT"
)

Type values.

func (Type) MarshalGQL

func (e Type) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Type) String

func (_type Type) String() string

func (*Type) UnmarshalGQL

func (e *Type) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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