Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) 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 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 PrivateInfo(v string) predicate.User
- func PrivateInfoContains(v string) predicate.User
- func PrivateInfoContainsFold(v string) predicate.User
- func PrivateInfoEQ(v string) predicate.User
- func PrivateInfoEqualFold(v string) predicate.User
- func PrivateInfoGT(v string) predicate.User
- func PrivateInfoGTE(v string) predicate.User
- func PrivateInfoHasPrefix(v string) predicate.User
- func PrivateInfoHasSuffix(v string) predicate.User
- func PrivateInfoIn(vs ...string) predicate.User
- func PrivateInfoLT(v string) predicate.User
- func PrivateInfoLTE(v string) predicate.User
- func PrivateInfoNEQ(v string) predicate.User
- func PrivateInfoNotIn(vs ...string) predicate.User
- func PublicInfo(v string) predicate.User
- func PublicInfoContains(v string) predicate.User
- func PublicInfoContainsFold(v string) predicate.User
- func PublicInfoEQ(v string) predicate.User
- func PublicInfoEqualFold(v string) predicate.User
- func PublicInfoGT(v string) predicate.User
- func PublicInfoGTE(v string) predicate.User
- func PublicInfoHasPrefix(v string) predicate.User
- func PublicInfoHasSuffix(v string) predicate.User
- func PublicInfoIn(vs ...string) predicate.User
- func PublicInfoLT(v string) predicate.User
- func PublicInfoLTE(v string) predicate.User
- func PublicInfoNEQ(v string) predicate.User
- func PublicInfoNotIn(vs ...string) 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" // FieldPublicInfo holds the string denoting the public_info field in the database. FieldPublicInfo = "public_info" // FieldPrivateInfo holds the string denoting the private_info field in the database. FieldPrivateInfo = "private_info" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldPublicInfo, FieldPrivateInfo, }
Columns holds all SQL columns for user 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 PrivateInfo ¶
PrivateInfo applies equality check predicate on the "private_info" field. It's identical to PrivateInfoEQ.
func PrivateInfoContains ¶
PrivateInfoContains applies the Contains predicate on the "private_info" field.
func PrivateInfoContainsFold ¶
PrivateInfoContainsFold applies the ContainsFold predicate on the "private_info" field.
func PrivateInfoEQ ¶
PrivateInfoEQ applies the EQ predicate on the "private_info" field.
func PrivateInfoEqualFold ¶
PrivateInfoEqualFold applies the EqualFold predicate on the "private_info" field.
func PrivateInfoGT ¶
PrivateInfoGT applies the GT predicate on the "private_info" field.
func PrivateInfoGTE ¶
PrivateInfoGTE applies the GTE predicate on the "private_info" field.
func PrivateInfoHasPrefix ¶
PrivateInfoHasPrefix applies the HasPrefix predicate on the "private_info" field.
func PrivateInfoHasSuffix ¶
PrivateInfoHasSuffix applies the HasSuffix predicate on the "private_info" field.
func PrivateInfoIn ¶
PrivateInfoIn applies the In predicate on the "private_info" field.
func PrivateInfoLT ¶
PrivateInfoLT applies the LT predicate on the "private_info" field.
func PrivateInfoLTE ¶
PrivateInfoLTE applies the LTE predicate on the "private_info" field.
func PrivateInfoNEQ ¶
PrivateInfoNEQ applies the NEQ predicate on the "private_info" field.
func PrivateInfoNotIn ¶
PrivateInfoNotIn applies the NotIn predicate on the "private_info" field.
func PublicInfo ¶
PublicInfo applies equality check predicate on the "public_info" field. It's identical to PublicInfoEQ.
func PublicInfoContains ¶
PublicInfoContains applies the Contains predicate on the "public_info" field.
func PublicInfoContainsFold ¶
PublicInfoContainsFold applies the ContainsFold predicate on the "public_info" field.
func PublicInfoEQ ¶
PublicInfoEQ applies the EQ predicate on the "public_info" field.
func PublicInfoEqualFold ¶
PublicInfoEqualFold applies the EqualFold predicate on the "public_info" field.
func PublicInfoGT ¶
PublicInfoGT applies the GT predicate on the "public_info" field.
func PublicInfoGTE ¶
PublicInfoGTE applies the GTE predicate on the "public_info" field.
func PublicInfoHasPrefix ¶
PublicInfoHasPrefix applies the HasPrefix predicate on the "public_info" field.
func PublicInfoHasSuffix ¶
PublicInfoHasSuffix applies the HasSuffix predicate on the "public_info" field.
func PublicInfoIn ¶
PublicInfoIn applies the In predicate on the "public_info" field.
func PublicInfoLT ¶
PublicInfoLT applies the LT predicate on the "public_info" field.
func PublicInfoLTE ¶
PublicInfoLTE applies the LTE predicate on the "public_info" field.
func PublicInfoNEQ ¶
PublicInfoNEQ applies the NEQ predicate on the "public_info" field.
func PublicInfoNotIn ¶
PublicInfoNotIn applies the NotIn predicate on the "public_info" 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 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 ByPrivateInfo ¶
func ByPrivateInfo(opts ...sql.OrderTermOption) OrderOption
ByPrivateInfo orders the results by the private_info field.
func ByPublicInfo ¶
func ByPublicInfo(opts ...sql.OrderTermOption) OrderOption
ByPublicInfo orders the results by the public_info field.