Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Pet) predicate.Pet
- func ID(id string) predicate.Pet
- func IDContainsFold(id string) predicate.Pet
- func IDEQ(id string) predicate.Pet
- func IDEqualFold(id string) predicate.Pet
- func IDGT(id string) predicate.Pet
- func IDGTE(id string) predicate.Pet
- func IDIn(ids ...string) predicate.Pet
- func IDLT(id string) predicate.Pet
- func IDLTE(id string) predicate.Pet
- func IDNEQ(id string) predicate.Pet
- func IDNotIn(ids ...string) predicate.Pet
- func Not(p predicate.Pet) predicate.Pet
- func Or(predicates ...predicate.Pet) predicate.Pet
- func ValidColumn(column string) bool
- type OrderOption
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" // Table holds the table name of the pet in the database. Table = "pets" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for pet fields.
View Source
var ( // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
Functions ¶
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Pet queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
Click to show internal directories.
Click to hide internal directories.