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 Tz0(v time.Time) predicate.CustomType
- func Tz0EQ(v time.Time) predicate.CustomType
- func Tz0GT(v time.Time) predicate.CustomType
- func Tz0GTE(v time.Time) predicate.CustomType
- func Tz0In(vs ...time.Time) predicate.CustomType
- func Tz0IsNil() predicate.CustomType
- func Tz0LT(v time.Time) predicate.CustomType
- func Tz0LTE(v time.Time) predicate.CustomType
- func Tz0NEQ(v time.Time) predicate.CustomType
- func Tz0NotIn(vs ...time.Time) predicate.CustomType
- func Tz0NotNil() predicate.CustomType
- func Tz3(v time.Time) predicate.CustomType
- func Tz3EQ(v time.Time) predicate.CustomType
- func Tz3GT(v time.Time) predicate.CustomType
- func Tz3GTE(v time.Time) predicate.CustomType
- func Tz3In(vs ...time.Time) predicate.CustomType
- func Tz3IsNil() predicate.CustomType
- func Tz3LT(v time.Time) predicate.CustomType
- func Tz3LTE(v time.Time) predicate.CustomType
- func Tz3NEQ(v time.Time) predicate.CustomType
- func Tz3NotIn(vs ...time.Time) predicate.CustomType
- func Tz3NotNil() predicate.CustomType
- func ValidColumn(column string) bool
- type OrderOption
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" // FieldTz0 holds the string denoting the tz0 field in the database. FieldTz0 = "tz0" // FieldTz3 holds the string denoting the tz3 field in the database. FieldTz3 = "tz3" // Table holds the table name of the customtype in the database. Table = "custom_types" )
Variables ¶
var Columns = []string{ FieldID, FieldCustom, FieldTz0, FieldTz3, }
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 Tz0 ¶
func Tz0(v time.Time) predicate.CustomType
Tz0 applies equality check predicate on the "tz0" field. It's identical to Tz0EQ.
func Tz0EQ ¶
func Tz0EQ(v time.Time) predicate.CustomType
Tz0EQ applies the EQ predicate on the "tz0" field.
func Tz0GT ¶
func Tz0GT(v time.Time) predicate.CustomType
Tz0GT applies the GT predicate on the "tz0" field.
func Tz0GTE ¶
func Tz0GTE(v time.Time) predicate.CustomType
Tz0GTE applies the GTE predicate on the "tz0" field.
func Tz0In ¶
func Tz0In(vs ...time.Time) predicate.CustomType
Tz0In applies the In predicate on the "tz0" field.
func Tz0IsNil ¶
func Tz0IsNil() predicate.CustomType
Tz0IsNil applies the IsNil predicate on the "tz0" field.
func Tz0LT ¶
func Tz0LT(v time.Time) predicate.CustomType
Tz0LT applies the LT predicate on the "tz0" field.
func Tz0LTE ¶
func Tz0LTE(v time.Time) predicate.CustomType
Tz0LTE applies the LTE predicate on the "tz0" field.
func Tz0NEQ ¶
func Tz0NEQ(v time.Time) predicate.CustomType
Tz0NEQ applies the NEQ predicate on the "tz0" field.
func Tz0NotIn ¶
func Tz0NotIn(vs ...time.Time) predicate.CustomType
Tz0NotIn applies the NotIn predicate on the "tz0" field.
func Tz0NotNil ¶
func Tz0NotNil() predicate.CustomType
Tz0NotNil applies the NotNil predicate on the "tz0" field.
func Tz3 ¶
func Tz3(v time.Time) predicate.CustomType
Tz3 applies equality check predicate on the "tz3" field. It's identical to Tz3EQ.
func Tz3EQ ¶
func Tz3EQ(v time.Time) predicate.CustomType
Tz3EQ applies the EQ predicate on the "tz3" field.
func Tz3GT ¶
func Tz3GT(v time.Time) predicate.CustomType
Tz3GT applies the GT predicate on the "tz3" field.
func Tz3GTE ¶
func Tz3GTE(v time.Time) predicate.CustomType
Tz3GTE applies the GTE predicate on the "tz3" field.
func Tz3In ¶
func Tz3In(vs ...time.Time) predicate.CustomType
Tz3In applies the In predicate on the "tz3" field.
func Tz3IsNil ¶
func Tz3IsNil() predicate.CustomType
Tz3IsNil applies the IsNil predicate on the "tz3" field.
func Tz3LT ¶
func Tz3LT(v time.Time) predicate.CustomType
Tz3LT applies the LT predicate on the "tz3" field.
func Tz3LTE ¶
func Tz3LTE(v time.Time) predicate.CustomType
Tz3LTE applies the LTE predicate on the "tz3" field.
func Tz3NEQ ¶
func Tz3NEQ(v time.Time) predicate.CustomType
Tz3NEQ applies the NEQ predicate on the "tz3" field.
func Tz3NotIn ¶
func Tz3NotIn(vs ...time.Time) predicate.CustomType
Tz3NotIn applies the NotIn predicate on the "tz3" field.
func Tz3NotNil ¶
func Tz3NotNil() predicate.CustomType
Tz3NotNil applies the NotNil predicate on the "tz3" 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 CustomType queries.
func ByCustom ¶
func ByCustom(opts ...sql.OrderTermOption) OrderOption
ByCustom orders the results by the custom field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTz0 ¶
func ByTz0(opts ...sql.OrderTermOption) OrderOption
ByTz0 orders the results by the tz0 field.
func ByTz3 ¶
func ByTz3(opts ...sql.OrderTermOption) OrderOption
ByTz3 orders the results by the tz3 field.