Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Pet) predicate.Pet
- func ID(id uintgql.Uint64) predicate.Pet
- func IDEQ(id uintgql.Uint64) predicate.Pet
- func IDGT(id uintgql.Uint64) predicate.Pet
- func IDGTE(id uintgql.Uint64) predicate.Pet
- func IDIn(ids ...uintgql.Uint64) predicate.Pet
- func IDLT(id uintgql.Uint64) predicate.Pet
- func IDLTE(id uintgql.Uint64) predicate.Pet
- func IDNEQ(id uintgql.Uint64) predicate.Pet
- func IDNotIn(ids ...uintgql.Uint64) predicate.Pet
- func Name(v string) predicate.Pet
- func NameContains(v string) predicate.Pet
- func NameContainsFold(v string) predicate.Pet
- func NameEQ(v string) predicate.Pet
- func NameEqualFold(v string) predicate.Pet
- func NameGT(v string) predicate.Pet
- func NameGTE(v string) predicate.Pet
- func NameHasPrefix(v string) predicate.Pet
- func NameHasSuffix(v string) predicate.Pet
- func NameIn(vs ...string) predicate.Pet
- func NameLT(v string) predicate.Pet
- func NameLTE(v string) predicate.Pet
- func NameNEQ(v string) predicate.Pet
- func NameNotIn(vs ...string) predicate.Pet
- func Not(p predicate.Pet) predicate.Pet
- func Or(predicates ...predicate.Pet) predicate.Pet
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the pet type in the database. Label = "pet" // 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" // Table holds the table name of the pet in the database. Table = "pets" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for pet 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.
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.