Documentation
¶
Index ¶
- Constants
- Variables
- func Age(v int) predicate.Model
- func AgeEQ(v int) predicate.Model
- func AgeGT(v int) predicate.Model
- func AgeGTE(v int) predicate.Model
- func AgeIn(vs ...int) predicate.Model
- func AgeLT(v int) predicate.Model
- func AgeLTE(v int) predicate.Model
- func AgeNEQ(v int) predicate.Model
- func AgeNotIn(vs ...int) predicate.Model
- func And(predicates ...predicate.Model) predicate.Model
- func Counter(v int64) predicate.Model
- func CounterEQ(v int64) predicate.Model
- func CounterGT(v int64) predicate.Model
- func CounterGTE(v int64) predicate.Model
- func CounterIn(vs ...int64) predicate.Model
- func CounterLT(v int64) predicate.Model
- func CounterLTE(v int64) predicate.Model
- func CounterNEQ(v int64) predicate.Model
- func CounterNotIn(vs ...int64) predicate.Model
- func Fax(v string) predicate.Model
- func FaxContains(v string) predicate.Model
- func FaxContainsFold(v string) predicate.Model
- func FaxEQ(v string) predicate.Model
- func FaxEqualFold(v string) predicate.Model
- func FaxGT(v string) predicate.Model
- func FaxGTE(v string) predicate.Model
- func FaxHasPrefix(v string) predicate.Model
- func FaxHasSuffix(v string) predicate.Model
- func FaxIn(vs ...string) predicate.Model
- func FaxLT(v string) predicate.Model
- func FaxLTE(v string) predicate.Model
- func FaxNEQ(v string) predicate.Model
- func FaxNotIn(vs ...string) 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
- func Right(v bool) predicate.Model
- func RightEQ(v bool) predicate.Model
- func RightNEQ(v bool) predicate.Model
- func Title(v string) predicate.Model
- func TitleContains(v string) predicate.Model
- func TitleContainsFold(v string) predicate.Model
- func TitleEQ(v string) predicate.Model
- func TitleEqualFold(v string) predicate.Model
- func TitleGT(v string) predicate.Model
- func TitleGTE(v string) predicate.Model
- func TitleHasPrefix(v string) predicate.Model
- func TitleHasSuffix(v string) predicate.Model
- func TitleIn(vs ...string) predicate.Model
- func TitleLT(v string) predicate.Model
- func TitleLTE(v string) predicate.Model
- func TitleNEQ(v string) predicate.Model
- func TitleNotIn(vs ...string) predicate.Model
- func ValidColumn(column string) bool
- func Web(v string) predicate.Model
- func WebContains(v string) predicate.Model
- func WebContainsFold(v string) predicate.Model
- func WebEQ(v string) predicate.Model
- func WebEqualFold(v string) predicate.Model
- func WebGT(v string) predicate.Model
- func WebGTE(v string) predicate.Model
- func WebHasPrefix(v string) predicate.Model
- func WebHasSuffix(v string) predicate.Model
- func WebIn(vs ...string) predicate.Model
- func WebLT(v string) predicate.Model
- func WebLTE(v string) predicate.Model
- func WebNEQ(v string) predicate.Model
- func WebNotIn(vs ...string) predicate.Model
- type OrderOption
- func ByAge(opts ...sql.OrderTermOption) OrderOption
- func ByCounter(opts ...sql.OrderTermOption) OrderOption
- func ByFax(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRight(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByWeb(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 field in the database. FieldName = "name" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldFax holds the string denoting the fax field in the database. FieldFax = "fax" // FieldWeb holds the string denoting the web field in the database. FieldWeb = "web" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // FieldRight holds the string denoting the right field in the database. FieldRight = "right" // FieldCounter holds the string denoting the counter field in the database. FieldCounter = "counter" // Table holds the table name of the model in the database. Table = "models" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldTitle, FieldFax, FieldWeb, FieldAge, FieldRight, FieldCounter, }
Columns holds all SQL columns for model fields.
Functions ¶
func Counter ¶
Counter applies equality check predicate on the "counter" field. It's identical to CounterEQ.
func CounterGTE ¶
CounterGTE applies the GTE predicate on the "counter" field.
func CounterLTE ¶
CounterLTE applies the LTE predicate on the "counter" field.
func CounterNEQ ¶
CounterNEQ applies the NEQ predicate on the "counter" field.
func CounterNotIn ¶
CounterNotIn applies the NotIn predicate on the "counter" field.
func FaxContains ¶
FaxContains applies the Contains predicate on the "fax" field.
func FaxContainsFold ¶
FaxContainsFold applies the ContainsFold predicate on the "fax" field.
func FaxEqualFold ¶
FaxEqualFold applies the EqualFold predicate on the "fax" field.
func FaxHasPrefix ¶
FaxHasPrefix applies the HasPrefix predicate on the "fax" field.
func FaxHasSuffix ¶
FaxHasSuffix applies the HasSuffix predicate on the "fax" field.
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 Right ¶
Right applies equality check predicate on the "right" field. It's identical to RightEQ.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WebContains ¶
WebContains applies the Contains predicate on the "web" field.
func WebContainsFold ¶
WebContainsFold applies the ContainsFold predicate on the "web" field.
func WebEqualFold ¶
WebEqualFold applies the EqualFold predicate on the "web" field.
func WebHasPrefix ¶
WebHasPrefix applies the HasPrefix predicate on the "web" field.
func WebHasSuffix ¶
WebHasSuffix applies the HasSuffix predicate on the "web" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Model queries.
func ByAge ¶
func ByAge(opts ...sql.OrderTermOption) OrderOption
ByAge orders the results by the age field.
func ByCounter ¶
func ByCounter(opts ...sql.OrderTermOption) OrderOption
ByCounter orders the results by the counter field.
func ByFax ¶
func ByFax(opts ...sql.OrderTermOption) OrderOption
ByFax orders the results by the fax field.
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.
func ByRight ¶
func ByRight(opts ...sql.OrderTermOption) OrderOption
ByRight orders the results by the right field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByWeb ¶
func ByWeb(opts ...sql.OrderTermOption) OrderOption
ByWeb orders the results by the web field.