Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v int32) predicate.Employee
- func AgeEQ(v int32) predicate.Employee
- func AgeGT(v int32) predicate.Employee
- func AgeGTE(v int32) predicate.Employee
- func AgeIn(vs ...int32) predicate.Employee
- func AgeIsNil() predicate.Employee
- func AgeLT(v int32) predicate.Employee
- func AgeLTE(v int32) predicate.Employee
- func AgeNEQ(v int32) predicate.Employee
- func AgeNotIn(vs ...int32) predicate.Employee
- func AgeNotNil() predicate.Employee
- func And(predicates ...predicate.Employee) predicate.Employee
- func ID(id int) predicate.Employee
- func IDEQ(id int) predicate.Employee
- func IDGT(id int) predicate.Employee
- func IDGTE(id int) predicate.Employee
- func IDIn(ids ...int) predicate.Employee
- func IDLT(id int) predicate.Employee
- func IDLTE(id int) predicate.Employee
- func IDNEQ(id int) predicate.Employee
- func IDNotIn(ids ...int) predicate.Employee
- func Name(v string) predicate.Employee
- func NameContains(v string) predicate.Employee
- func NameContainsFold(v string) predicate.Employee
- func NameEQ(v string) predicate.Employee
- func NameEqualFold(v string) predicate.Employee
- func NameGT(v string) predicate.Employee
- func NameGTE(v string) predicate.Employee
- func NameHasPrefix(v string) predicate.Employee
- func NameHasSuffix(v string) predicate.Employee
- func NameIn(vs ...string) predicate.Employee
- func NameLT(v string) predicate.Employee
- func NameLTE(v string) predicate.Employee
- func NameNEQ(v string) predicate.Employee
- func NameNotIn(vs ...string) predicate.Employee
- func Not(p predicate.Employee) predicate.Employee
- func Or(predicates ...predicate.Employee) predicate.Employee
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
View Source
const ( // Label holds the string label denoting the employee type in the database. Label = "employee" // 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" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // Table holds the table name of the employee in the database. Table = "employees" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldName, FieldAge, }
Columns holds all SQL columns for employee 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 Employee queries.
func ByAge ¶
func ByAge(opts ...sql.OrderTermOption) OrderOption
ByAge orders the results by the age 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.
Click to show internal directories.
Click to hide internal directories.