Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v int) predicate.User
- func AgeEQ(v int) predicate.User
- func AgeGT(v int) predicate.User
- func AgeGTE(v int) predicate.User
- func AgeIn(vs ...int) predicate.User
- func AgeLT(v int) predicate.User
- func AgeLTE(v int) predicate.User
- func AgeNEQ(v int) predicate.User
- func AgeNotIn(vs ...int) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func Gender(v int) predicate.User
- func GenderEQ(v int) predicate.User
- func GenderGT(v int) predicate.User
- func GenderGTE(v int) predicate.User
- func GenderIn(vs ...int) predicate.User
- func GenderLT(v int) predicate.User
- func GenderLTE(v int) predicate.User
- func GenderNEQ(v int) predicate.User
- func GenderNotIn(vs ...int) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Introduce(v string) predicate.User
- func IntroduceContains(v string) predicate.User
- func IntroduceContainsFold(v string) predicate.User
- func IntroduceEQ(v string) predicate.User
- func IntroduceEqualFold(v string) predicate.User
- func IntroduceGT(v string) predicate.User
- func IntroduceGTE(v string) predicate.User
- func IntroduceHasPrefix(v string) predicate.User
- func IntroduceHasSuffix(v string) predicate.User
- func IntroduceIn(vs ...string) predicate.User
- func IntroduceLT(v string) predicate.User
- func IntroduceLTE(v string) predicate.User
- func IntroduceNEQ(v string) predicate.User
- func IntroduceNotIn(vs ...string) predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // 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" // FieldGender holds the string denoting the gender field in the database. FieldGender = "gender" // FieldIntroduce holds the string denoting the introduce field in the database. FieldIntroduce = "introduce" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldAge, FieldGender, FieldIntroduce, }
Columns holds all SQL columns for user fields.
Functions ¶
func Gender ¶
Gender applies equality check predicate on the "gender" field. It's identical to GenderEQ.
func GenderNotIn ¶
GenderNotIn applies the NotIn predicate on the "gender" field.
func Introduce ¶
Introduce applies equality check predicate on the "introduce" field. It's identical to IntroduceEQ.
func IntroduceContains ¶
IntroduceContains applies the Contains predicate on the "introduce" field.
func IntroduceContainsFold ¶
IntroduceContainsFold applies the ContainsFold predicate on the "introduce" field.
func IntroduceEQ ¶
IntroduceEQ applies the EQ predicate on the "introduce" field.
func IntroduceEqualFold ¶
IntroduceEqualFold applies the EqualFold predicate on the "introduce" field.
func IntroduceGT ¶
IntroduceGT applies the GT predicate on the "introduce" field.
func IntroduceGTE ¶
IntroduceGTE applies the GTE predicate on the "introduce" field.
func IntroduceHasPrefix ¶
IntroduceHasPrefix applies the HasPrefix predicate on the "introduce" field.
func IntroduceHasSuffix ¶
IntroduceHasSuffix applies the HasSuffix predicate on the "introduce" field.
func IntroduceIn ¶
IntroduceIn applies the In predicate on the "introduce" field.
func IntroduceLT ¶
IntroduceLT applies the LT predicate on the "introduce" field.
func IntroduceLTE ¶
IntroduceLTE applies the LTE predicate on the "introduce" field.
func IntroduceNEQ ¶
IntroduceNEQ applies the NEQ predicate on the "introduce" field.
func IntroduceNotIn ¶
IntroduceNotIn applies the NotIn predicate on the "introduce" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAge ¶
func ByAge(opts ...sql.OrderTermOption) OrderOption
ByAge orders the results by the age field.
func ByGender ¶
func ByGender(opts ...sql.OrderTermOption) OrderOption
ByGender orders the results by the gender field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIntroduce ¶
func ByIntroduce(opts ...sql.OrderTermOption) OrderOption
ByIntroduce orders the results by the introduce field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.