Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.App) predicate.App
- func HasUser() predicate.App
- func HasUserWith(preds ...predicate.User) predicate.App
- func ID(id int) predicate.App
- func IDEQ(id int) predicate.App
- func IDGT(id int) predicate.App
- func IDGTE(id int) predicate.App
- func IDIn(ids ...int) predicate.App
- func IDLT(id int) predicate.App
- func IDLTE(id int) predicate.App
- func IDNEQ(id int) predicate.App
- func IDNotIn(ids ...int) predicate.App
- func Name(v string) predicate.App
- func NameContains(v string) predicate.App
- func NameContainsFold(v string) predicate.App
- func NameEQ(v string) predicate.App
- func NameEqualFold(v string) predicate.App
- func NameGT(v string) predicate.App
- func NameGTE(v string) predicate.App
- func NameHasPrefix(v string) predicate.App
- func NameHasSuffix(v string) predicate.App
- func NameIn(vs ...string) predicate.App
- func NameLT(v string) predicate.App
- func NameLTE(v string) predicate.App
- func NameNEQ(v string) predicate.App
- func NameNotIn(vs ...string) predicate.App
- func Not(p predicate.App) predicate.App
- func Or(predicates ...predicate.App) predicate.App
- func SecretKey(v uuid.UUID) predicate.App
- func SecretKeyEQ(v uuid.UUID) predicate.App
- func SecretKeyGT(v uuid.UUID) predicate.App
- func SecretKeyGTE(v uuid.UUID) predicate.App
- func SecretKeyIn(vs ...uuid.UUID) predicate.App
- func SecretKeyLT(v uuid.UUID) predicate.App
- func SecretKeyLTE(v uuid.UUID) predicate.App
- func SecretKeyNEQ(v uuid.UUID) predicate.App
- func SecretKeyNotIn(vs ...uuid.UUID) predicate.App
- func UUID(v uuid.UUID) predicate.App
- func UUIDEQ(v uuid.UUID) predicate.App
- func UUIDGT(v uuid.UUID) predicate.App
- func UUIDGTE(v uuid.UUID) predicate.App
- func UUIDIn(vs ...uuid.UUID) predicate.App
- func UUIDLT(v uuid.UUID) predicate.App
- func UUIDLTE(v uuid.UUID) predicate.App
- func UUIDNEQ(v uuid.UUID) predicate.App
- func UUIDNotIn(vs ...uuid.UUID) predicate.App
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the app type in the database. Label = "app" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSecretKey holds the string denoting the secret_key field in the database. FieldSecretKey = "secret_key" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the app in the database. Table = "apps" // UserTable is the table that holds the user relation/edge. UserTable = "apps" // 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 = "user_apps" )
Variables ¶
var ( // DefaultUUID holds the default value on creation for the "uuid" field. DefaultUUID func() uuid.UUID // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultSecretKey holds the default value on creation for the "secret_key" field. DefaultSecretKey func() uuid.UUID )
var Columns = []string{ FieldID, FieldUUID, FieldName, FieldSecretKey, }
Columns holds all SQL columns for app fields.
var ForeignKeys = []string{
"user_apps",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "apps" table and are not defined as standalone fields in the schema.
Functions ¶
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func SecretKey ¶
SecretKey applies equality check predicate on the "secret_key" field. It's identical to SecretKeyEQ.
func SecretKeyEQ ¶
SecretKeyEQ applies the EQ predicate on the "secret_key" field.
func SecretKeyGT ¶
SecretKeyGT applies the GT predicate on the "secret_key" field.
func SecretKeyGTE ¶
SecretKeyGTE applies the GTE predicate on the "secret_key" field.
func SecretKeyIn ¶
SecretKeyIn applies the In predicate on the "secret_key" field.
func SecretKeyLT ¶
SecretKeyLT applies the LT predicate on the "secret_key" field.
func SecretKeyLTE ¶
SecretKeyLTE applies the LTE predicate on the "secret_key" field.
func SecretKeyNEQ ¶
SecretKeyNEQ applies the NEQ predicate on the "secret_key" field.
func SecretKeyNotIn ¶
SecretKeyNotIn applies the NotIn predicate on the "secret_key" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.