Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Model) predicate.Model
- func ID(id int) predicate.Model
- func IDEQ(id int) predicate.Model
- func IDGT(id int) predicate.Model
- func IDGTE(id int) predicate.Model
- func IDIn(ids ...int) predicate.Model
- func IDLT(id int) predicate.Model
- func IDLTE(id int) predicate.Model
- func IDNEQ(id int) predicate.Model
- func IDNotIn(ids ...int) predicate.Model
- func Name(v string) predicate.Model
- func NameContains(v string) predicate.Model
- func NameContainsFold(v string) predicate.Model
- func NameEQ(v string) predicate.Model
- func NameEqualFold(v string) predicate.Model
- func NameGT(v string) predicate.Model
- func NameGTE(v string) predicate.Model
- func NameHasPrefix(v string) predicate.Model
- func NameHasSuffix(v string) predicate.Model
- func NameIn(vs ...string) predicate.Model
- func NameLT(v string) predicate.Model
- func NameLTE(v string) predicate.Model
- func NameNEQ(v string) predicate.Model
- func NameNotIn(vs ...string) predicate.Model
- func Not(p predicate.Model) predicate.Model
- func Or(predicates ...predicate.Model) predicate.Model
Constants ¶
View Source
const ( // Label holds the string label denoting the model type in the database. Label = "model" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name vertex property in the database. FieldName = "name" // Table holds the table name of the model in the database. Table = "models" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for model fields.
View Source
var ( // DefaultName holds the default value on creation for the name field. DefaultName string )
Functions ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.