balance

package
v0.0.0-...-1971f33 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the balance type in the database.
	Label = "balance"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTokenId holds the string denoting the tokenid field in the database.
	FieldTokenId = "token_id"
	// FieldBalance holds the string denoting the balance field in the database.
	FieldBalance = "balance"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// EdgeContract holds the string denoting the contract edge name in mutations.
	EdgeContract = "contract"
	// Table holds the table name of the balance in the database.
	Table = "balances"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "balances"
	// AccountInverseTable is the table name for the Contract entity.
	// It exists in this package in order to avoid circular dependency with the "contract" package.
	AccountInverseTable = "contracts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "balance_account"
	// ContractTable is the table that holds the contract relation/edge.
	ContractTable = "balances"
	// ContractInverseTable is the table name for the Contract entity.
	// It exists in this package in order to avoid circular dependency with the "contract" package.
	ContractInverseTable = "contracts"
	// ContractColumn is the table column denoting the contract relation/edge.
	ContractColumn = "balance_contract"
)

Variables

View Source
var (
	// DefaultTokenId holds the default value on creation for the "tokenId" field.
	DefaultTokenId func() big.Int
	// DefaultBalance holds the default value on creation for the "balance" field.
	DefaultBalance func() big.Int
)

Columns holds all SQL columns for balance fields.

View Source
var ForeignKeys = []string{
	"balance_account",
	"balance_contract",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "balances" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Balance) predicate.Balance

And groups predicates with the AND operator between them.

func Balance

func Balance(v big.Int) predicate.Balance

Balance applies equality check predicate on the "balance" field. It's identical to BalanceEQ.

func BalanceEQ

func BalanceEQ(v big.Int) predicate.Balance

BalanceEQ applies the EQ predicate on the "balance" field.

func BalanceGT

func BalanceGT(v big.Int) predicate.Balance

BalanceGT applies the GT predicate on the "balance" field.

func BalanceGTE

func BalanceGTE(v big.Int) predicate.Balance

BalanceGTE applies the GTE predicate on the "balance" field.

func BalanceIn

func BalanceIn(vs ...big.Int) predicate.Balance

BalanceIn applies the In predicate on the "balance" field.

func BalanceLT

func BalanceLT(v big.Int) predicate.Balance

BalanceLT applies the LT predicate on the "balance" field.

func BalanceLTE

func BalanceLTE(v big.Int) predicate.Balance

BalanceLTE applies the LTE predicate on the "balance" field.

func BalanceNEQ

func BalanceNEQ(v big.Int) predicate.Balance

BalanceNEQ applies the NEQ predicate on the "balance" field.

func BalanceNotIn

func BalanceNotIn(vs ...big.Int) predicate.Balance

BalanceNotIn applies the NotIn predicate on the "balance" field.

func HasAccount

func HasAccount() predicate.Balance

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Contract) predicate.Balance

HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).

func HasContract

func HasContract() predicate.Balance

HasContract applies the HasEdge predicate on the "contract" edge.

func HasContractWith

func HasContractWith(preds ...predicate.Contract) predicate.Balance

HasContractWith applies the HasEdge predicate on the "contract" edge with a given conditions (other predicates).

func ID

func ID(id string) predicate.Balance

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Balance

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Balance

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Balance

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Balance

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Balance

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Balance

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Balance

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Balance

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Balance) predicate.Balance

Or groups predicates with the OR operator between them.

func TokenId

func TokenId(v big.Int) predicate.Balance

TokenId applies equality check predicate on the "tokenId" field. It's identical to TokenIdEQ.

func TokenIdEQ

func TokenIdEQ(v big.Int) predicate.Balance

TokenIdEQ applies the EQ predicate on the "tokenId" field.

func TokenIdGT

func TokenIdGT(v big.Int) predicate.Balance

TokenIdGT applies the GT predicate on the "tokenId" field.

func TokenIdGTE

func TokenIdGTE(v big.Int) predicate.Balance

TokenIdGTE applies the GTE predicate on the "tokenId" field.

func TokenIdIn

func TokenIdIn(vs ...big.Int) predicate.Balance

TokenIdIn applies the In predicate on the "tokenId" field.

func TokenIdIsNil

func TokenIdIsNil() predicate.Balance

TokenIdIsNil applies the IsNil predicate on the "tokenId" field.

func TokenIdLT

func TokenIdLT(v big.Int) predicate.Balance

TokenIdLT applies the LT predicate on the "tokenId" field.

func TokenIdLTE

func TokenIdLTE(v big.Int) predicate.Balance

TokenIdLTE applies the LTE predicate on the "tokenId" field.

func TokenIdNEQ

func TokenIdNEQ(v big.Int) predicate.Balance

TokenIdNEQ applies the NEQ predicate on the "tokenId" field.

func TokenIdNotIn

func TokenIdNotIn(vs ...big.Int) predicate.Balance

TokenIdNotIn applies the NotIn predicate on the "tokenId" field.

func TokenIdNotNil

func TokenIdNotNil() predicate.Balance

TokenIdNotNil applies the NotNil predicate on the "tokenId" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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