Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Token) predicate.Token
- func HasUser() predicate.Token
- func HasUserWith(preds ...predicate.User) predicate.Token
- func ID(id int) predicate.Token
- func IDEQ(id int) predicate.Token
- func IDGT(id int) predicate.Token
- func IDGTE(id int) predicate.Token
- func IDIn(ids ...int) predicate.Token
- func IDLT(id int) predicate.Token
- func IDLTE(id int) predicate.Token
- func IDNEQ(id int) predicate.Token
- func IDNotIn(ids ...int) predicate.Token
- func Not(p predicate.Token) predicate.Token
- func Or(predicates ...predicate.Token) predicate.Token
- func ValidColumn(column string) bool
- func Value(v string) predicate.Token
- func ValueContains(v string) predicate.Token
- func ValueContainsFold(v string) predicate.Token
- func ValueEQ(v string) predicate.Token
- func ValueEqualFold(v string) predicate.Token
- func ValueGT(v string) predicate.Token
- func ValueGTE(v string) predicate.Token
- func ValueHasPrefix(v string) predicate.Token
- func ValueHasSuffix(v string) predicate.Token
- func ValueIn(vs ...string) predicate.Token
- func ValueLT(v string) predicate.Token
- func ValueLTE(v string) predicate.Token
- func ValueNEQ(v string) predicate.Token
- func ValueNotIn(vs ...string) predicate.Token
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" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the token in the database. Table = "tokens" // UserTable is the table the holds the user relation/edge. UserTable = "tokens" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "token_user" )
Variables ¶
var Columns = []string{ FieldID, FieldValue, }
Columns holds all SQL columns for token fields.
var ForeignKeys = []string{
"token_user",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Token type.
var ( // ValueValidator is a validator for the "value" field. It is called by the builders before save. ValueValidator func(string) error )
Functions ¶
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.