Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CustomType) predicate.CustomType
- func Custom(v string) predicate.CustomType
- func CustomContains(v string) predicate.CustomType
- func CustomContainsFold(v string) predicate.CustomType
- func CustomEQ(v string) predicate.CustomType
- func CustomEqualFold(v string) predicate.CustomType
- func CustomGT(v string) predicate.CustomType
- func CustomGTE(v string) predicate.CustomType
- func CustomHasPrefix(v string) predicate.CustomType
- func CustomHasSuffix(v string) predicate.CustomType
- func CustomIn(vs ...string) predicate.CustomType
- func CustomIsNil() predicate.CustomType
- func CustomLT(v string) predicate.CustomType
- func CustomLTE(v string) predicate.CustomType
- func CustomNEQ(v string) predicate.CustomType
- func CustomNotIn(vs ...string) predicate.CustomType
- func CustomNotNil() predicate.CustomType
- func ID(id int) predicate.CustomType
- func IDEQ(id int) predicate.CustomType
- func IDGT(id int) predicate.CustomType
- func IDGTE(id int) predicate.CustomType
- func IDIn(ids ...int) predicate.CustomType
- func IDLT(id int) predicate.CustomType
- func IDLTE(id int) predicate.CustomType
- func IDNEQ(id int) predicate.CustomType
- func IDNotIn(ids ...int) predicate.CustomType
- func Not(p predicate.CustomType) predicate.CustomType
- func Or(predicates ...predicate.CustomType) predicate.CustomType
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the customtype type in the database. Label = "custom_type" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCustom holds the string denoting the custom field in the database. FieldCustom = "custom" // Table holds the table name of the customtype in the database. Table = "custom_types" )
Variables ¶
var Columns = []string{ FieldID, FieldCustom, }
Columns holds all SQL columns for customtype fields.
Functions ¶
func And ¶
func And(predicates ...predicate.CustomType) predicate.CustomType
And groups predicates with the AND operator between them.
func Custom ¶
func Custom(v string) predicate.CustomType
Custom applies equality check predicate on the "custom" field. It's identical to CustomEQ.
func CustomContains ¶
func CustomContains(v string) predicate.CustomType
CustomContains applies the Contains predicate on the "custom" field.
func CustomContainsFold ¶
func CustomContainsFold(v string) predicate.CustomType
CustomContainsFold applies the ContainsFold predicate on the "custom" field.
func CustomEQ ¶
func CustomEQ(v string) predicate.CustomType
CustomEQ applies the EQ predicate on the "custom" field.
func CustomEqualFold ¶
func CustomEqualFold(v string) predicate.CustomType
CustomEqualFold applies the EqualFold predicate on the "custom" field.
func CustomGT ¶
func CustomGT(v string) predicate.CustomType
CustomGT applies the GT predicate on the "custom" field.
func CustomGTE ¶
func CustomGTE(v string) predicate.CustomType
CustomGTE applies the GTE predicate on the "custom" field.
func CustomHasPrefix ¶
func CustomHasPrefix(v string) predicate.CustomType
CustomHasPrefix applies the HasPrefix predicate on the "custom" field.
func CustomHasSuffix ¶
func CustomHasSuffix(v string) predicate.CustomType
CustomHasSuffix applies the HasSuffix predicate on the "custom" field.
func CustomIn ¶
func CustomIn(vs ...string) predicate.CustomType
CustomIn applies the In predicate on the "custom" field.
func CustomIsNil ¶
func CustomIsNil() predicate.CustomType
CustomIsNil applies the IsNil predicate on the "custom" field.
func CustomLT ¶
func CustomLT(v string) predicate.CustomType
CustomLT applies the LT predicate on the "custom" field.
func CustomLTE ¶
func CustomLTE(v string) predicate.CustomType
CustomLTE applies the LTE predicate on the "custom" field.
func CustomNEQ ¶
func CustomNEQ(v string) predicate.CustomType
CustomNEQ applies the NEQ predicate on the "custom" field.
func CustomNotIn ¶
func CustomNotIn(vs ...string) predicate.CustomType
CustomNotIn applies the NotIn predicate on the "custom" field.
func CustomNotNil ¶
func CustomNotNil() predicate.CustomType
CustomNotNil applies the NotNil predicate on the "custom" field.
func IDGTE ¶
func IDGTE(id int) predicate.CustomType
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.CustomType
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.CustomType
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.CustomType
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.CustomType
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.CustomType) predicate.CustomType
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CustomType) predicate.CustomType
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.