Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Pony) predicate.Pony
- func ID(id int) predicate.Pony
- func IDEQ(id int) predicate.Pony
- func IDGT(id int) predicate.Pony
- func IDGTE(id int) predicate.Pony
- func IDIn(ids ...int) predicate.Pony
- func IDLT(id int) predicate.Pony
- func IDLTE(id int) predicate.Pony
- func IDNEQ(id int) predicate.Pony
- func IDNotIn(ids ...int) predicate.Pony
- func Name(v string) predicate.Pony
- func NameContains(v string) predicate.Pony
- func NameContainsFold(v string) predicate.Pony
- func NameEQ(v string) predicate.Pony
- func NameEqualFold(v string) predicate.Pony
- func NameGT(v string) predicate.Pony
- func NameGTE(v string) predicate.Pony
- func NameHasPrefix(v string) predicate.Pony
- func NameHasSuffix(v string) predicate.Pony
- func NameIn(vs ...string) predicate.Pony
- func NameLT(v string) predicate.Pony
- func NameLTE(v string) predicate.Pony
- func NameNEQ(v string) predicate.Pony
- func NameNotIn(vs ...string) predicate.Pony
- func Not(p predicate.Pony) predicate.Pony
- func Or(predicates ...predicate.Pony) predicate.Pony
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the pony type in the database. Label = "pony" // 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 pony in the database. Table = "ponies" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for pony fields.
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Pony queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
Click to show internal directories.
Click to hide internal directories.