Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Token) predicate.Token
- func HasContract() predicate.Token
- func HasContractWith(preds ...predicate.Contract) predicate.Token
- func HasOwner() predicate.Token
- func HasOwnerWith(preds ...predicate.Contract) predicate.Token
- func ID(id string) predicate.Token
- func IDEQ(id string) predicate.Token
- func IDGT(id string) predicate.Token
- func IDGTE(id string) predicate.Token
- func IDIn(ids ...string) predicate.Token
- func IDLT(id string) predicate.Token
- func IDLTE(id string) predicate.Token
- func IDNEQ(id string) predicate.Token
- func IDNotIn(ids ...string) predicate.Token
- func Not(p predicate.Token) predicate.Token
- func Or(predicates ...predicate.Token) predicate.Token
- func TokenId(v big.Int) predicate.Token
- func TokenIdEQ(v big.Int) predicate.Token
- func TokenIdGT(v big.Int) predicate.Token
- func TokenIdGTE(v big.Int) predicate.Token
- func TokenIdIn(vs ...big.Int) predicate.Token
- func TokenIdLT(v big.Int) predicate.Token
- func TokenIdLTE(v big.Int) predicate.Token
- func TokenIdNEQ(v big.Int) predicate.Token
- func TokenIdNotIn(vs ...big.Int) predicate.Token
- func ValidColumn(column string) bool
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldTokenId, }
Columns holds all SQL columns for token fields.
var ( // DefaultTokenId holds the default value on creation for the "tokenId" field. DefaultTokenId func() big.Int )
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 HasContract ¶
HasContract applies the HasEdge predicate on the "contract" edge.
func HasContractWith ¶
HasContractWith applies the HasEdge predicate on the "contract" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func TokenId ¶
TokenId applies equality check predicate on the "tokenId" field. It's identical to TokenIdEQ.
func TokenIdGTE ¶
TokenIdGTE applies the GTE predicate on the "tokenId" field.
func TokenIdLTE ¶
TokenIdLTE applies the LTE predicate on the "tokenId" field.
func TokenIdNEQ ¶
TokenIdNEQ applies the NEQ predicate on the "tokenId" field.
func TokenIdNotIn ¶
TokenIdNotIn applies the NotIn predicate on the "tokenId" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.