Documentation
¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.User
- func ActiveEQ(v bool) predicate.User
- func ActiveNEQ(v bool) predicate.User
- 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 CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func HasCars() predicate.User
- func HasCarsWith(preds ...predicate.Car) predicate.User
- func HasGroups() predicate.User
- func HasGroupsWith(preds ...predicate.Group) 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 Rank(v float64) predicate.User
- func RankEQ(v float64) predicate.User
- func RankGT(v float64) predicate.User
- func RankGTE(v float64) predicate.User
- func RankIn(vs ...float64) predicate.User
- func RankIsNil() predicate.User
- func RankLT(v float64) predicate.User
- func RankLTE(v float64) predicate.User
- func RankNEQ(v float64) predicate.User
- func RankNotIn(vs ...float64) predicate.User
- func RankNotNil() predicate.User
- func StateEQ(v State) predicate.User
- func StateIn(vs ...State) predicate.User
- func StateIsNil() predicate.User
- func StateNEQ(v State) predicate.User
- func StateNotIn(vs ...State) predicate.User
- func StateNotNil() predicate.User
- func StateValidator(s State) error
- func StringsIsNil() predicate.User
- func StringsNotNil() predicate.User
- func URLIsNil() predicate.User
- func URLNotNil() predicate.User
- func UUID(v uuid.UUID) predicate.User
- func UUIDEQ(v uuid.UUID) predicate.User
- func UUIDGT(v uuid.UUID) predicate.User
- func UUIDGTE(v uuid.UUID) predicate.User
- func UUIDIn(vs ...uuid.UUID) predicate.User
- func UUIDLT(v uuid.UUID) predicate.User
- func UUIDLTE(v uuid.UUID) predicate.User
- func UUIDNEQ(v uuid.UUID) predicate.User
- func UUIDNotIn(vs ...uuid.UUID) predicate.User
- func ValidColumn(column string) bool
- type State
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" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldRank holds the string denoting the rank field in the database. FieldRank = "rank" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldStrings holds the string denoting the strings field in the database. FieldStrings = "strings" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // EdgeCars holds the string denoting the cars edge name in mutations. EdgeCars = "cars" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // Table holds the table name of the user in the database. Table = "users" // CarsTable is the table that holds the cars relation/edge. CarsTable = "cars" // CarsInverseTable is the table name for the Car entity. // It exists in this package in order to avoid circular dependency with the "car" package. CarsInverseTable = "cars" // CarsColumn is the table column denoting the cars relation/edge. CarsColumn = "user_cars" // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_users" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groups" )
Variables ¶
var ( // AgeValidator is a validator for the "age" field. It is called by the builders before save. AgeValidator func(int) error // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUUID holds the default value on creation for the "uuid" field. DefaultUUID func() uuid.UUID )
var Columns = []string{ FieldID, FieldAge, FieldName, FieldRank, FieldActive, FieldCreatedAt, FieldURL, FieldStrings, FieldState, FieldUUID, }
Columns holds all SQL columns for user fields.
var ( // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"group_id", "user_id"} )
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasCarsWith ¶
HasCarsWith applies the HasEdge predicate on the "cars" edge with a given conditions (other predicates).
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
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 RankNotNil ¶
RankNotNil applies the NotNil predicate on the "rank" field.
func StateIsNil ¶
StateIsNil applies the IsNil predicate on the "state" field.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" field.
func StateNotNil ¶
StateNotNil applies the NotNil predicate on the "state" field.
func StateValidator ¶
StateValidator is a validator for the "state" field enum values. It is called by the builders before save.
func StringsIsNil ¶
StringsIsNil applies the IsNil predicate on the "strings" field.
func StringsNotNil ¶
StringsNotNil applies the NotNil predicate on the "strings" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).