Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func EmailAddress(v string) predicate.User
- func EmailAddressContains(v string) predicate.User
- func EmailAddressContainsFold(v string) predicate.User
- func EmailAddressEQ(v string) predicate.User
- func EmailAddressEqualFold(v string) predicate.User
- func EmailAddressGT(v string) predicate.User
- func EmailAddressGTE(v string) predicate.User
- func EmailAddressHasPrefix(v string) predicate.User
- func EmailAddressHasSuffix(v string) predicate.User
- func EmailAddressIn(vs ...string) predicate.User
- func EmailAddressLT(v string) predicate.User
- func EmailAddressLTE(v string) predicate.User
- func EmailAddressNEQ(v string) predicate.User
- func EmailAddressNotIn(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 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" // FieldEmailAddress holds the string denoting the email_address field in the database. FieldEmailAddress = "email_address" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldEmailAddress, }
Columns holds all SQL columns for user fields.
Functions ¶
func EmailAddress ¶
EmailAddress applies equality check predicate on the "email_address" field. It's identical to EmailAddressEQ.
func EmailAddressContains ¶
EmailAddressContains applies the Contains predicate on the "email_address" field.
func EmailAddressContainsFold ¶
EmailAddressContainsFold applies the ContainsFold predicate on the "email_address" field.
func EmailAddressEQ ¶
EmailAddressEQ applies the EQ predicate on the "email_address" field.
func EmailAddressEqualFold ¶
EmailAddressEqualFold applies the EqualFold predicate on the "email_address" field.
func EmailAddressGT ¶
EmailAddressGT applies the GT predicate on the "email_address" field.
func EmailAddressGTE ¶
EmailAddressGTE applies the GTE predicate on the "email_address" field.
func EmailAddressHasPrefix ¶
EmailAddressHasPrefix applies the HasPrefix predicate on the "email_address" field.
func EmailAddressHasSuffix ¶
EmailAddressHasSuffix applies the HasSuffix predicate on the "email_address" field.
func EmailAddressIn ¶
EmailAddressIn applies the In predicate on the "email_address" field.
func EmailAddressLT ¶
EmailAddressLT applies the LT predicate on the "email_address" field.
func EmailAddressLTE ¶
EmailAddressLTE applies the LTE predicate on the "email_address" field.
func EmailAddressNEQ ¶
EmailAddressNEQ applies the NEQ predicate on the "email_address" field.
func EmailAddressNotIn ¶
EmailAddressNotIn applies the NotIn predicate on the "email_address" 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 ByEmailAddress ¶
func ByEmailAddress(opts ...sql.OrderTermOption) OrderOption
ByEmailAddress orders the results by the email_address 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.