Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Zoo) predicate.Zoo
- func ID(id int) predicate.Zoo
- func IDEQ(id int) predicate.Zoo
- func IDGT(id int) predicate.Zoo
- func IDGTE(id int) predicate.Zoo
- func IDIn(ids ...int) predicate.Zoo
- func IDLT(id int) predicate.Zoo
- func IDLTE(id int) predicate.Zoo
- func IDNEQ(id int) predicate.Zoo
- func IDNotIn(ids ...int) predicate.Zoo
- func Not(p predicate.Zoo) predicate.Zoo
- func Or(predicates ...predicate.Zoo) predicate.Zoo
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the zoo type in the database. Label = "zoo" // FieldID holds the string denoting the id field in the database. FieldID = "id" // Table holds the table name of the zoo in the database. Table = "zoos" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for zoo fields.
Functions ¶
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 Zoo 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.