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 Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) 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 Pwd(v string) predicate.User
- func PwdContains(v string) predicate.User
- func PwdContainsFold(v string) predicate.User
- func PwdEQ(v string) predicate.User
- func PwdEqualFold(v string) predicate.User
- func PwdGT(v string) predicate.User
- func PwdGTE(v string) predicate.User
- func PwdHasPrefix(v string) predicate.User
- func PwdHasSuffix(v string) predicate.User
- func PwdIn(vs ...string) predicate.User
- func PwdLT(v string) predicate.User
- func PwdLTE(v string) predicate.User
- func PwdNEQ(v string) predicate.User
- func PwdNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
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" // FieldPwd holds the string denoting the pwd field in the database. FieldPwd = "pwd" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldPwd, FieldEmail, FieldAge, }
Columns holds all SQL columns for user fields.
var ( // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int) error )
Functions ¶
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" 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 PwdContains ¶
PwdContains applies the Contains predicate on the "pwd" field.
func PwdContainsFold ¶
PwdContainsFold applies the ContainsFold predicate on the "pwd" field.
func PwdEqualFold ¶
PwdEqualFold applies the EqualFold predicate on the "pwd" field.
func PwdHasPrefix ¶
PwdHasPrefix applies the HasPrefix predicate on the "pwd" field.
func PwdHasSuffix ¶
PwdHasSuffix applies the HasSuffix predicate on the "pwd" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.