Documentation
¶
Index ¶
- Constants
- Variables
- func Address(v string) predicate.CustomerTokens
- func AddressContains(v string) predicate.CustomerTokens
- func AddressContainsFold(v string) predicate.CustomerTokens
- func AddressEQ(v string) predicate.CustomerTokens
- func AddressEqualFold(v string) predicate.CustomerTokens
- func AddressGT(v string) predicate.CustomerTokens
- func AddressGTE(v string) predicate.CustomerTokens
- func AddressHasPrefix(v string) predicate.CustomerTokens
- func AddressHasSuffix(v string) predicate.CustomerTokens
- func AddressIn(vs ...string) predicate.CustomerTokens
- func AddressLT(v string) predicate.CustomerTokens
- func AddressLTE(v string) predicate.CustomerTokens
- func AddressNEQ(v string) predicate.CustomerTokens
- func AddressNotIn(vs ...string) predicate.CustomerTokens
- func And(predicates ...predicate.CustomerTokens) predicate.CustomerTokens
- func HasProject() predicate.CustomerTokens
- func HasProjectWith(preds ...predicate.Project) predicate.CustomerTokens
- func ID(id int) predicate.CustomerTokens
- func IDEQ(id int) predicate.CustomerTokens
- func IDGT(id int) predicate.CustomerTokens
- func IDGTE(id int) predicate.CustomerTokens
- func IDIn(ids ...int) predicate.CustomerTokens
- func IDLT(id int) predicate.CustomerTokens
- func IDLTE(id int) predicate.CustomerTokens
- func IDNEQ(id int) predicate.CustomerTokens
- func IDNotIn(ids ...int) predicate.CustomerTokens
- func Not(p predicate.CustomerTokens) predicate.CustomerTokens
- func Or(predicates ...predicate.CustomerTokens) predicate.CustomerTokens
- func ProjectAddress(v string) predicate.CustomerTokens
- func ProjectAddressContains(v string) predicate.CustomerTokens
- func ProjectAddressContainsFold(v string) predicate.CustomerTokens
- func ProjectAddressEQ(v string) predicate.CustomerTokens
- func ProjectAddressEqualFold(v string) predicate.CustomerTokens
- func ProjectAddressGT(v string) predicate.CustomerTokens
- func ProjectAddressGTE(v string) predicate.CustomerTokens
- func ProjectAddressHasPrefix(v string) predicate.CustomerTokens
- func ProjectAddressHasSuffix(v string) predicate.CustomerTokens
- func ProjectAddressIn(vs ...string) predicate.CustomerTokens
- func ProjectAddressLT(v string) predicate.CustomerTokens
- func ProjectAddressLTE(v string) predicate.CustomerTokens
- func ProjectAddressNEQ(v string) predicate.CustomerTokens
- func ProjectAddressNotIn(vs ...string) predicate.CustomerTokens
- func Slot(v int) predicate.CustomerTokens
- func SlotEQ(v int) predicate.CustomerTokens
- func SlotGT(v int) predicate.CustomerTokens
- func SlotGTE(v int) predicate.CustomerTokens
- func SlotIn(vs ...int) predicate.CustomerTokens
- func SlotLT(v int) predicate.CustomerTokens
- func SlotLTE(v int) predicate.CustomerTokens
- func SlotNEQ(v int) predicate.CustomerTokens
- func SlotNotIn(vs ...int) predicate.CustomerTokens
- func TokenID(v string) predicate.CustomerTokens
- func TokenIDContains(v string) predicate.CustomerTokens
- func TokenIDContainsFold(v string) predicate.CustomerTokens
- func TokenIDEQ(v string) predicate.CustomerTokens
- func TokenIDEqualFold(v string) predicate.CustomerTokens
- func TokenIDGT(v string) predicate.CustomerTokens
- func TokenIDGTE(v string) predicate.CustomerTokens
- func TokenIDHasPrefix(v string) predicate.CustomerTokens
- func TokenIDHasSuffix(v string) predicate.CustomerTokens
- func TokenIDIn(vs ...string) predicate.CustomerTokens
- func TokenIDLT(v string) predicate.CustomerTokens
- func TokenIDLTE(v string) predicate.CustomerTokens
- func TokenIDNEQ(v string) predicate.CustomerTokens
- func TokenIDNotIn(vs ...string) predicate.CustomerTokens
- func ValidColumn(column string) bool
- func Value(v string) predicate.CustomerTokens
- func ValueContains(v string) predicate.CustomerTokens
- func ValueContainsFold(v string) predicate.CustomerTokens
- func ValueEQ(v string) predicate.CustomerTokens
- func ValueEqualFold(v string) predicate.CustomerTokens
- func ValueGT(v string) predicate.CustomerTokens
- func ValueGTE(v string) predicate.CustomerTokens
- func ValueHasPrefix(v string) predicate.CustomerTokens
- func ValueHasSuffix(v string) predicate.CustomerTokens
- func ValueIn(vs ...string) predicate.CustomerTokens
- func ValueLT(v string) predicate.CustomerTokens
- func ValueLTE(v string) predicate.CustomerTokens
- func ValueNEQ(v string) predicate.CustomerTokens
- func ValueNotIn(vs ...string) predicate.CustomerTokens
- type OrderOption
- func ByAddress(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProject(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectAddress(opts ...sql.OrderTermOption) OrderOption
- func ByProjectCount(opts ...sql.OrderTermOption) OrderOption
- func BySlot(opts ...sql.OrderTermOption) OrderOption
- func ByTokenID(opts ...sql.OrderTermOption) OrderOption
- func ByValue(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the customertokens type in the database. Label = "customer_tokens" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAddress holds the string denoting the address field in the database. FieldAddress = "address" // FieldProjectAddress holds the string denoting the project_address field in the database. FieldProjectAddress = "project_address" // FieldSlot holds the string denoting the slot field in the database. FieldSlot = "slot" // FieldTokenID holds the string denoting the token_id field in the database. FieldTokenID = "token_id" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // Table holds the table name of the customertokens in the database. Table = "customer_tokens" // ProjectTable is the table that holds the project relation/edge. The primary key declared below. ProjectTable = "project_tokens" // ProjectInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectInverseTable = "projects" )
Variables ¶
var Columns = []string{ FieldID, FieldAddress, FieldProjectAddress, FieldSlot, FieldTokenID, FieldValue, }
Columns holds all SQL columns for customertokens fields.
var ( // ProjectPrimaryKey and ProjectColumn2 are the table columns denoting the // primary key for the project relation (M2M). ProjectPrimaryKey = []string{"project_id", "customer_tokens_id"} )
Functions ¶
func Address ¶
func Address(v string) predicate.CustomerTokens
Address applies equality check predicate on the "address" field. It's identical to AddressEQ.
func AddressContains ¶
func AddressContains(v string) predicate.CustomerTokens
AddressContains applies the Contains predicate on the "address" field.
func AddressContainsFold ¶
func AddressContainsFold(v string) predicate.CustomerTokens
AddressContainsFold applies the ContainsFold predicate on the "address" field.
func AddressEQ ¶
func AddressEQ(v string) predicate.CustomerTokens
AddressEQ applies the EQ predicate on the "address" field.
func AddressEqualFold ¶
func AddressEqualFold(v string) predicate.CustomerTokens
AddressEqualFold applies the EqualFold predicate on the "address" field.
func AddressGT ¶
func AddressGT(v string) predicate.CustomerTokens
AddressGT applies the GT predicate on the "address" field.
func AddressGTE ¶
func AddressGTE(v string) predicate.CustomerTokens
AddressGTE applies the GTE predicate on the "address" field.
func AddressHasPrefix ¶
func AddressHasPrefix(v string) predicate.CustomerTokens
AddressHasPrefix applies the HasPrefix predicate on the "address" field.
func AddressHasSuffix ¶
func AddressHasSuffix(v string) predicate.CustomerTokens
AddressHasSuffix applies the HasSuffix predicate on the "address" field.
func AddressIn ¶
func AddressIn(vs ...string) predicate.CustomerTokens
AddressIn applies the In predicate on the "address" field.
func AddressLT ¶
func AddressLT(v string) predicate.CustomerTokens
AddressLT applies the LT predicate on the "address" field.
func AddressLTE ¶
func AddressLTE(v string) predicate.CustomerTokens
AddressLTE applies the LTE predicate on the "address" field.
func AddressNEQ ¶
func AddressNEQ(v string) predicate.CustomerTokens
AddressNEQ applies the NEQ predicate on the "address" field.
func AddressNotIn ¶
func AddressNotIn(vs ...string) predicate.CustomerTokens
AddressNotIn applies the NotIn predicate on the "address" field.
func And ¶
func And(predicates ...predicate.CustomerTokens) predicate.CustomerTokens
And groups predicates with the AND operator between them.
func HasProject ¶
func HasProject() predicate.CustomerTokens
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
func HasProjectWith(preds ...predicate.Project) predicate.CustomerTokens
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.CustomerTokens
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.CustomerTokens
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.CustomerTokens
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.CustomerTokens
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.CustomerTokens
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.CustomerTokens
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.CustomerTokens
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.CustomerTokens
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.CustomerTokens) predicate.CustomerTokens
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CustomerTokens) predicate.CustomerTokens
Or groups predicates with the OR operator between them.
func ProjectAddress ¶
func ProjectAddress(v string) predicate.CustomerTokens
ProjectAddress applies equality check predicate on the "project_address" field. It's identical to ProjectAddressEQ.
func ProjectAddressContains ¶
func ProjectAddressContains(v string) predicate.CustomerTokens
ProjectAddressContains applies the Contains predicate on the "project_address" field.
func ProjectAddressContainsFold ¶
func ProjectAddressContainsFold(v string) predicate.CustomerTokens
ProjectAddressContainsFold applies the ContainsFold predicate on the "project_address" field.
func ProjectAddressEQ ¶
func ProjectAddressEQ(v string) predicate.CustomerTokens
ProjectAddressEQ applies the EQ predicate on the "project_address" field.
func ProjectAddressEqualFold ¶
func ProjectAddressEqualFold(v string) predicate.CustomerTokens
ProjectAddressEqualFold applies the EqualFold predicate on the "project_address" field.
func ProjectAddressGT ¶
func ProjectAddressGT(v string) predicate.CustomerTokens
ProjectAddressGT applies the GT predicate on the "project_address" field.
func ProjectAddressGTE ¶
func ProjectAddressGTE(v string) predicate.CustomerTokens
ProjectAddressGTE applies the GTE predicate on the "project_address" field.
func ProjectAddressHasPrefix ¶
func ProjectAddressHasPrefix(v string) predicate.CustomerTokens
ProjectAddressHasPrefix applies the HasPrefix predicate on the "project_address" field.
func ProjectAddressHasSuffix ¶
func ProjectAddressHasSuffix(v string) predicate.CustomerTokens
ProjectAddressHasSuffix applies the HasSuffix predicate on the "project_address" field.
func ProjectAddressIn ¶
func ProjectAddressIn(vs ...string) predicate.CustomerTokens
ProjectAddressIn applies the In predicate on the "project_address" field.
func ProjectAddressLT ¶
func ProjectAddressLT(v string) predicate.CustomerTokens
ProjectAddressLT applies the LT predicate on the "project_address" field.
func ProjectAddressLTE ¶
func ProjectAddressLTE(v string) predicate.CustomerTokens
ProjectAddressLTE applies the LTE predicate on the "project_address" field.
func ProjectAddressNEQ ¶
func ProjectAddressNEQ(v string) predicate.CustomerTokens
ProjectAddressNEQ applies the NEQ predicate on the "project_address" field.
func ProjectAddressNotIn ¶
func ProjectAddressNotIn(vs ...string) predicate.CustomerTokens
ProjectAddressNotIn applies the NotIn predicate on the "project_address" field.
func Slot ¶
func Slot(v int) predicate.CustomerTokens
Slot applies equality check predicate on the "slot" field. It's identical to SlotEQ.
func SlotEQ ¶
func SlotEQ(v int) predicate.CustomerTokens
SlotEQ applies the EQ predicate on the "slot" field.
func SlotGT ¶
func SlotGT(v int) predicate.CustomerTokens
SlotGT applies the GT predicate on the "slot" field.
func SlotGTE ¶
func SlotGTE(v int) predicate.CustomerTokens
SlotGTE applies the GTE predicate on the "slot" field.
func SlotIn ¶
func SlotIn(vs ...int) predicate.CustomerTokens
SlotIn applies the In predicate on the "slot" field.
func SlotLT ¶
func SlotLT(v int) predicate.CustomerTokens
SlotLT applies the LT predicate on the "slot" field.
func SlotLTE ¶
func SlotLTE(v int) predicate.CustomerTokens
SlotLTE applies the LTE predicate on the "slot" field.
func SlotNEQ ¶
func SlotNEQ(v int) predicate.CustomerTokens
SlotNEQ applies the NEQ predicate on the "slot" field.
func SlotNotIn ¶
func SlotNotIn(vs ...int) predicate.CustomerTokens
SlotNotIn applies the NotIn predicate on the "slot" field.
func TokenID ¶
func TokenID(v string) predicate.CustomerTokens
TokenID applies equality check predicate on the "token_id" field. It's identical to TokenIDEQ.
func TokenIDContains ¶
func TokenIDContains(v string) predicate.CustomerTokens
TokenIDContains applies the Contains predicate on the "token_id" field.
func TokenIDContainsFold ¶
func TokenIDContainsFold(v string) predicate.CustomerTokens
TokenIDContainsFold applies the ContainsFold predicate on the "token_id" field.
func TokenIDEQ ¶
func TokenIDEQ(v string) predicate.CustomerTokens
TokenIDEQ applies the EQ predicate on the "token_id" field.
func TokenIDEqualFold ¶
func TokenIDEqualFold(v string) predicate.CustomerTokens
TokenIDEqualFold applies the EqualFold predicate on the "token_id" field.
func TokenIDGT ¶
func TokenIDGT(v string) predicate.CustomerTokens
TokenIDGT applies the GT predicate on the "token_id" field.
func TokenIDGTE ¶
func TokenIDGTE(v string) predicate.CustomerTokens
TokenIDGTE applies the GTE predicate on the "token_id" field.
func TokenIDHasPrefix ¶
func TokenIDHasPrefix(v string) predicate.CustomerTokens
TokenIDHasPrefix applies the HasPrefix predicate on the "token_id" field.
func TokenIDHasSuffix ¶
func TokenIDHasSuffix(v string) predicate.CustomerTokens
TokenIDHasSuffix applies the HasSuffix predicate on the "token_id" field.
func TokenIDIn ¶
func TokenIDIn(vs ...string) predicate.CustomerTokens
TokenIDIn applies the In predicate on the "token_id" field.
func TokenIDLT ¶
func TokenIDLT(v string) predicate.CustomerTokens
TokenIDLT applies the LT predicate on the "token_id" field.
func TokenIDLTE ¶
func TokenIDLTE(v string) predicate.CustomerTokens
TokenIDLTE applies the LTE predicate on the "token_id" field.
func TokenIDNEQ ¶
func TokenIDNEQ(v string) predicate.CustomerTokens
TokenIDNEQ applies the NEQ predicate on the "token_id" field.
func TokenIDNotIn ¶
func TokenIDNotIn(vs ...string) predicate.CustomerTokens
TokenIDNotIn applies the NotIn predicate on the "token_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
func Value(v string) predicate.CustomerTokens
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
func ValueContains(v string) predicate.CustomerTokens
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
func ValueContainsFold(v string) predicate.CustomerTokens
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEQ ¶
func ValueEQ(v string) predicate.CustomerTokens
ValueEQ applies the EQ predicate on the "value" field.
func ValueEqualFold ¶
func ValueEqualFold(v string) predicate.CustomerTokens
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueGT ¶
func ValueGT(v string) predicate.CustomerTokens
ValueGT applies the GT predicate on the "value" field.
func ValueGTE ¶
func ValueGTE(v string) predicate.CustomerTokens
ValueGTE applies the GTE predicate on the "value" field.
func ValueHasPrefix ¶
func ValueHasPrefix(v string) predicate.CustomerTokens
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
func ValueHasSuffix(v string) predicate.CustomerTokens
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueIn ¶
func ValueIn(vs ...string) predicate.CustomerTokens
ValueIn applies the In predicate on the "value" field.
func ValueLT ¶
func ValueLT(v string) predicate.CustomerTokens
ValueLT applies the LT predicate on the "value" field.
func ValueLTE ¶
func ValueLTE(v string) predicate.CustomerTokens
ValueLTE applies the LTE predicate on the "value" field.
func ValueNEQ ¶
func ValueNEQ(v string) predicate.CustomerTokens
ValueNEQ applies the NEQ predicate on the "value" field.
func ValueNotIn ¶
func ValueNotIn(vs ...string) predicate.CustomerTokens
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the CustomerTokens queries.
func ByAddress ¶
func ByAddress(opts ...sql.OrderTermOption) OrderOption
ByAddress orders the results by the address field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByProject ¶
func ByProject(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProject orders the results by project terms.
func ByProjectAddress ¶
func ByProjectAddress(opts ...sql.OrderTermOption) OrderOption
ByProjectAddress orders the results by the project_address field.
func ByProjectCount ¶
func ByProjectCount(opts ...sql.OrderTermOption) OrderOption
ByProjectCount orders the results by project count.
func BySlot ¶
func BySlot(opts ...sql.OrderTermOption) OrderOption
BySlot orders the results by the slot field.
func ByTokenID ¶
func ByTokenID(opts ...sql.OrderTermOption) OrderOption
ByTokenID orders the results by the token_id field.
func ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.