Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Preference) predicate.Preference
- func ID(id int) predicate.Preference
- func IDEQ(id int) predicate.Preference
- func IDGT(id int) predicate.Preference
- func IDGTE(id int) predicate.Preference
- func IDIn(ids ...int) predicate.Preference
- func IDLT(id int) predicate.Preference
- func IDLTE(id int) predicate.Preference
- func IDNEQ(id int) predicate.Preference
- func IDNotIn(ids ...int) predicate.Preference
- func Name(v string) predicate.Preference
- func NameContains(v string) predicate.Preference
- func NameContainsFold(v string) predicate.Preference
- func NameEQ(v string) predicate.Preference
- func NameEqualFold(v string) predicate.Preference
- func NameGT(v string) predicate.Preference
- func NameGTE(v string) predicate.Preference
- func NameHasPrefix(v string) predicate.Preference
- func NameHasSuffix(v string) predicate.Preference
- func NameIn(vs ...string) predicate.Preference
- func NameLT(v string) predicate.Preference
- func NameLTE(v string) predicate.Preference
- func NameNEQ(v string) predicate.Preference
- func NameNotIn(vs ...string) predicate.Preference
- func Not(p predicate.Preference) predicate.Preference
- func Or(predicates ...predicate.Preference) predicate.Preference
- func ValidColumn(column string) bool
- func Value(v string) predicate.Preference
- func ValueContains(v string) predicate.Preference
- func ValueContainsFold(v string) predicate.Preference
- func ValueEQ(v string) predicate.Preference
- func ValueEqualFold(v string) predicate.Preference
- func ValueGT(v string) predicate.Preference
- func ValueGTE(v string) predicate.Preference
- func ValueHasPrefix(v string) predicate.Preference
- func ValueHasSuffix(v string) predicate.Preference
- func ValueIn(vs ...string) predicate.Preference
- func ValueLT(v string) predicate.Preference
- func ValueLTE(v string) predicate.Preference
- func ValueNEQ(v string) predicate.Preference
- func ValueNotIn(vs ...string) predicate.Preference
Constants ¶
const ( // Label holds the string label denoting the preference type in the database. Label = "preference" // 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" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // Table holds the table name of the preference in the database. Table = "preferences" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldValue, }
Columns holds all SQL columns for preference fields.
var ForeignKeys = []string{
"account_preferences",
"entity_preferences",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "preferences" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Preference) predicate.Preference
And groups predicates with the AND operator between them.
func IDGTE ¶
func IDGTE(id int) predicate.Preference
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Preference
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Preference
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Preference
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Preference
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.Preference
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Preference
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Preference
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Preference
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Preference
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Preference
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Preference
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Preference
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Preference
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Preference
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Preference
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Preference
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Preference
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Preference
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.Preference) predicate.Preference
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Preference) predicate.Preference
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
func Value(v string) predicate.Preference
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
func ValueContains(v string) predicate.Preference
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
func ValueContainsFold(v string) predicate.Preference
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEQ ¶
func ValueEQ(v string) predicate.Preference
ValueEQ applies the EQ predicate on the "value" field.
func ValueEqualFold ¶
func ValueEqualFold(v string) predicate.Preference
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueGT ¶
func ValueGT(v string) predicate.Preference
ValueGT applies the GT predicate on the "value" field.
func ValueGTE ¶
func ValueGTE(v string) predicate.Preference
ValueGTE applies the GTE predicate on the "value" field.
func ValueHasPrefix ¶
func ValueHasPrefix(v string) predicate.Preference
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
func ValueHasSuffix(v string) predicate.Preference
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueIn ¶
func ValueIn(vs ...string) predicate.Preference
ValueIn applies the In predicate on the "value" field.
func ValueLT ¶
func ValueLT(v string) predicate.Preference
ValueLT applies the LT predicate on the "value" field.
func ValueLTE ¶
func ValueLTE(v string) predicate.Preference
ValueLTE applies the LTE predicate on the "value" field.
func ValueNEQ ¶
func ValueNEQ(v string) predicate.Preference
ValueNEQ applies the NEQ predicate on the "value" field.
func ValueNotIn ¶
func ValueNotIn(vs ...string) predicate.Preference
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.