Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Category) predicate.Category
- func HasAdmin() predicate.Category
- func HasAdminWith(preds ...predicate.User) predicate.Category
- func ID(id int) predicate.Category
- func IDEQ(id int) predicate.Category
- func IDGT(id int) predicate.Category
- func IDGTE(id int) predicate.Category
- func IDIn(ids ...int) predicate.Category
- func IDLT(id int) predicate.Category
- func IDLTE(id int) predicate.Category
- func IDNEQ(id int) predicate.Category
- func IDNotIn(ids ...int) predicate.Category
- func Name(v string) predicate.Category
- func NameContains(v string) predicate.Category
- func NameContainsFold(v string) predicate.Category
- func NameEQ(v string) predicate.Category
- func NameEqualFold(v string) predicate.Category
- func NameGT(v string) predicate.Category
- func NameGTE(v string) predicate.Category
- func NameHasPrefix(v string) predicate.Category
- func NameHasSuffix(v string) predicate.Category
- func NameIn(vs ...string) predicate.Category
- func NameLT(v string) predicate.Category
- func NameLTE(v string) predicate.Category
- func NameNEQ(v string) predicate.Category
- func NameNotIn(vs ...string) predicate.Category
- func Not(p predicate.Category) predicate.Category
- func Or(predicates ...predicate.Category) predicate.Category
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the category type in the database. Label = "category" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // EdgeAdmin holds the string denoting the admin edge name in mutations. EdgeAdmin = "admin" // Table holds the table name of the category in the database. Table = "categories" // AdminTable is the table that holds the admin relation/edge. AdminTable = "categories" // AdminInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AdminInverseTable = "users" // AdminColumn is the table column denoting the admin relation/edge. AdminColumn = "category_admin" )
Variables ¶
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for category fields.
var ForeignKeys = []string{
"category_admin",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "categories" table and are not defined as standalone fields in the schema.
Functions ¶
func HasAdminWith ¶
HasAdminWith applies the HasEdge predicate on the "admin" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.