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 Amount(v schema.Amount) predicate.User
- func AmountEQ(v schema.Amount) predicate.User
- func AmountGT(v schema.Amount) predicate.User
- func AmountGTE(v schema.Amount) predicate.User
- func AmountIn(vs ...schema.Amount) predicate.User
- func AmountLT(v schema.Amount) predicate.User
- func AmountLTE(v schema.Amount) predicate.User
- func AmountNEQ(v schema.Amount) predicate.User
- func AmountNotIn(vs ...schema.Amount) predicate.User
- 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 Not(p predicate.User) predicate.User
- func NullableString(v string) predicate.User
- func NullableStringContains(v string) predicate.User
- func NullableStringContainsFold(v string) predicate.User
- func NullableStringEQ(v string) predicate.User
- func NullableStringEqualFold(v string) predicate.User
- func NullableStringGT(v string) predicate.User
- func NullableStringGTE(v string) predicate.User
- func NullableStringHasPrefix(v string) predicate.User
- func NullableStringHasSuffix(v string) predicate.User
- func NullableStringIn(vs ...string) predicate.User
- func NullableStringIsNil() predicate.User
- func NullableStringLT(v string) predicate.User
- func NullableStringLTE(v string) predicate.User
- func NullableStringNEQ(v string) predicate.User
- func NullableStringNotIn(vs ...string) predicate.User
- func NullableStringNotNil() predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func RoleEQ(v role.Role) predicate.User
- func RoleIn(vs ...role.Role) predicate.User
- func RoleNEQ(v role.Role) predicate.User
- func RoleNotIn(vs ...role.Role) predicate.User
- func RoleValidator(r role.Role) error
- func Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(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" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // FieldAmount holds the string denoting the amount field in the database. FieldAmount = "amount" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldNullableString holds the string denoting the nullable_string field in the database. FieldNullableString = "nullable_string" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var Columns = []string{ FieldID, FieldUsername, FieldAge, FieldAmount, FieldRole, FieldNullableString, }
Columns holds all SQL columns for user fields.
Functions ¶
func Amount ¶
Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
func AmountNotIn ¶
AmountNotIn applies the NotIn predicate on the "amount" field.
func NullableString ¶
NullableString applies equality check predicate on the "nullable_string" field. It's identical to NullableStringEQ.
func NullableStringContains ¶
NullableStringContains applies the Contains predicate on the "nullable_string" field.
func NullableStringContainsFold ¶
NullableStringContainsFold applies the ContainsFold predicate on the "nullable_string" field.
func NullableStringEQ ¶
NullableStringEQ applies the EQ predicate on the "nullable_string" field.
func NullableStringEqualFold ¶
NullableStringEqualFold applies the EqualFold predicate on the "nullable_string" field.
func NullableStringGT ¶
NullableStringGT applies the GT predicate on the "nullable_string" field.
func NullableStringGTE ¶
NullableStringGTE applies the GTE predicate on the "nullable_string" field.
func NullableStringHasPrefix ¶
NullableStringHasPrefix applies the HasPrefix predicate on the "nullable_string" field.
func NullableStringHasSuffix ¶
NullableStringHasSuffix applies the HasSuffix predicate on the "nullable_string" field.
func NullableStringIn ¶
NullableStringIn applies the In predicate on the "nullable_string" field.
func NullableStringIsNil ¶
NullableStringIsNil applies the IsNil predicate on the "nullable_string" field.
func NullableStringLT ¶
NullableStringLT applies the LT predicate on the "nullable_string" field.
func NullableStringLTE ¶
NullableStringLTE applies the LTE predicate on the "nullable_string" field.
func NullableStringNEQ ¶
NullableStringNEQ applies the NEQ predicate on the "nullable_string" field.
func NullableStringNotIn ¶
NullableStringNotIn applies the NotIn predicate on the "nullable_string" field.
func NullableStringNotNil ¶
NullableStringNotNil applies the NotNil predicate on the "nullable_string" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.