Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Token) predicate.Token
- func Body(v string) predicate.Token
- func BodyContains(v string) predicate.Token
- func BodyContainsFold(v string) predicate.Token
- func BodyEQ(v string) predicate.Token
- func BodyEqualFold(v string) predicate.Token
- func BodyGT(v string) predicate.Token
- func BodyGTE(v string) predicate.Token
- func BodyHasPrefix(v string) predicate.Token
- func BodyHasSuffix(v string) predicate.Token
- func BodyIn(vs ...string) predicate.Token
- func BodyLT(v string) predicate.Token
- func BodyLTE(v string) predicate.Token
- func BodyNEQ(v string) predicate.Token
- func BodyNotIn(vs ...string) predicate.Token
- func HasAccount() predicate.Token
- func HasAccountWith(preds ...predicate.Account) predicate.Token
- func ID(id sid.ID) predicate.Token
- func IDEQ(id sid.ID) predicate.Token
- func IDGT(id sid.ID) predicate.Token
- func IDGTE(id sid.ID) predicate.Token
- func IDIn(ids ...sid.ID) predicate.Token
- func IDLT(id sid.ID) predicate.Token
- func IDLTE(id sid.ID) predicate.Token
- func IDNEQ(id sid.ID) predicate.Token
- func IDNotIn(ids ...sid.ID) predicate.Token
- func Not(p predicate.Token) predicate.Token
- func Or(predicates ...predicate.Token) 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" // FieldBody holds the string denoting the body field in the database. FieldBody = "body" // EdgeAccount holds the string denoting the account edge name in mutations. EdgeAccount = "account" // Table holds the table name of the token in the database. Table = "tokens" // AccountTable is the table that holds the account relation/edge. AccountTable = "tokens" // AccountInverseTable is the table name for the Account entity. // It exists in this package in order to avoid circular dependency with the "account" package. AccountInverseTable = "accounts" // AccountColumn is the table column denoting the account relation/edge. AccountColumn = "account_token" )
Variables ¶
var ( // BodyValidator is a validator for the "body" field. It is called by the builders before save. BodyValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() sid.ID )
var Columns = []string{ FieldID, FieldBody, }
Columns holds all SQL columns for token fields.
var ForeignKeys = []string{
"account_token",
}
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 BodyContains ¶
BodyContains applies the Contains predicate on the "body" field.
func BodyContainsFold ¶
BodyContainsFold applies the ContainsFold predicate on the "body" field.
func BodyEqualFold ¶
BodyEqualFold applies the EqualFold predicate on the "body" field.
func BodyHasPrefix ¶
BodyHasPrefix applies the HasPrefix predicate on the "body" field.
func BodyHasSuffix ¶
BodyHasSuffix applies the HasSuffix predicate on the "body" field.
func HasAccount ¶
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.