token

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 token type in the database.
	Label = "token"
	// 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"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeContract holds the string denoting the contract edge name in mutations.
	EdgeContract = "contract"
	// Table holds the table name of the token in the database.
	Table = "tokens"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "tokens"
	// OwnerInverseTable is the table name for the Contract entity.
	// It exists in this package in order to avoid circular dependency with the "contract" package.
	OwnerInverseTable = "contracts"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "token_owner"
	// ContractTable is the table that holds the contract relation/edge.
	ContractTable = "tokens"
	// 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 = "token_contract"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldTokenId,
}

Columns holds all SQL columns for token fields.

View Source
var (
	// DefaultTokenId holds the default value on creation for the "tokenId" field.
	DefaultTokenId func() big.Int
)
View Source
var ForeignKeys = []string{
	"token_owner",
	"token_contract",
}

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

Functions

func And

func And(predicates ...predicate.Token) predicate.Token

And groups predicates with the AND operator between them.

func HasContract

func HasContract() predicate.Token

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

func HasContractWith

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

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

func HasOwner

func HasOwner() predicate.Token

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Contract) predicate.Token

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

func ID

func ID(id string) predicate.Token

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Token

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Token

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Token

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Token

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Token

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Token

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Token) predicate.Token

Or groups predicates with the OR operator between them.

func TokenId

func TokenId(v big.Int) predicate.Token

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

func TokenIdEQ

func TokenIdEQ(v big.Int) predicate.Token

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

func TokenIdGT

func TokenIdGT(v big.Int) predicate.Token

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

func TokenIdGTE

func TokenIdGTE(v big.Int) predicate.Token

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

func TokenIdIn

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

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

func TokenIdLT

func TokenIdLT(v big.Int) predicate.Token

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

func TokenIdLTE

func TokenIdLTE(v big.Int) predicate.Token

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

func TokenIdNEQ

func TokenIdNEQ(v big.Int) predicate.Token

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

func TokenIdNotIn

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

TokenIdNotIn applies the NotIn 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