Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Dept) predicate.Dept
- func HasUser() predicate.Dept
- func HasUserWith(preds ...predicate.User) predicate.Dept
- func ID(id string) predicate.Dept
- func IDEQ(id string) predicate.Dept
- func IDGT(id string) predicate.Dept
- func IDGTE(id string) predicate.Dept
- func IDIn(ids ...string) predicate.Dept
- func IDLT(id string) predicate.Dept
- func IDLTE(id string) predicate.Dept
- func IDNEQ(id string) predicate.Dept
- func IDNotIn(ids ...string) predicate.Dept
- func Not(p predicate.Dept) predicate.Dept
- func Or(predicates ...predicate.Dept) predicate.Dept
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the dept type in the database. Label = "dept" // FieldID holds the string denoting the id field in the database. FieldID = "dept_id" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // UserFieldID holds the string denoting the ID field of the User. UserFieldID = "user_id" // Table holds the table name of the dept in the database. Table = "depts" // UserTable is the table that holds the user relation/edge. The primary key declared below. UserTable = "dept_user" // 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" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for dept fields.
View Source
var ( // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
View Source
var ( // UserPrimaryKey and UserColumn2 are the table columns denoting the // primary key for the user relation (M2M). UserPrimaryKey = []string{"dept_id", "user_id"} )
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).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.