Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Info) predicate.Info
- func HasUser() predicate.Info
- func HasUserWith(preds ...predicate.User) predicate.Info
- func ID(id int) predicate.Info
- func IDEQ(id int) predicate.Info
- func IDGT(id int) predicate.Info
- func IDGTE(id int) predicate.Info
- func IDIn(ids ...int) predicate.Info
- func IDLT(id int) predicate.Info
- func IDLTE(id int) predicate.Info
- func IDNEQ(id int) predicate.Info
- func IDNotIn(ids ...int) predicate.Info
- func Not(p predicate.Info) predicate.Info
- func Or(predicates ...predicate.Info) predicate.Info
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the info type in the database. Label = "info" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the info in the database. Table = "infos" // UserTable is the table the holds the user relation/edge. UserTable = "infos" // 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 = "id" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldContent, }
Columns holds all SQL columns for info fields.
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.