Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Options) predicate.Options
- func CreatedAt(v time.Time) predicate.Options
- func CreatedAtEQ(v time.Time) predicate.Options
- func CreatedAtGT(v time.Time) predicate.Options
- func CreatedAtGTE(v time.Time) predicate.Options
- func CreatedAtIn(vs ...time.Time) predicate.Options
- func CreatedAtLT(v time.Time) predicate.Options
- func CreatedAtLTE(v time.Time) predicate.Options
- func CreatedAtNEQ(v time.Time) predicate.Options
- func CreatedAtNotIn(vs ...time.Time) predicate.Options
- func ID(id int) predicate.Options
- func IDEQ(id int) predicate.Options
- func IDGT(id int) predicate.Options
- func IDGTE(id int) predicate.Options
- func IDIn(ids ...int) predicate.Options
- func IDLT(id int) predicate.Options
- func IDLTE(id int) predicate.Options
- func IDNEQ(id int) predicate.Options
- func IDNotIn(ids ...int) predicate.Options
- func Key(v string) predicate.Options
- func KeyContains(v string) predicate.Options
- func KeyContainsFold(v string) predicate.Options
- func KeyEQ(v string) predicate.Options
- func KeyEqualFold(v string) predicate.Options
- func KeyGT(v string) predicate.Options
- func KeyGTE(v string) predicate.Options
- func KeyHasPrefix(v string) predicate.Options
- func KeyHasSuffix(v string) predicate.Options
- func KeyIn(vs ...string) predicate.Options
- func KeyLT(v string) predicate.Options
- func KeyLTE(v string) predicate.Options
- func KeyNEQ(v string) predicate.Options
- func KeyNotIn(vs ...string) predicate.Options
- func Not(p predicate.Options) predicate.Options
- func Or(predicates ...predicate.Options) predicate.Options
- func UpdatedAt(v time.Time) predicate.Options
- func UpdatedAtEQ(v time.Time) predicate.Options
- func UpdatedAtGT(v time.Time) predicate.Options
- func UpdatedAtGTE(v time.Time) predicate.Options
- func UpdatedAtIn(vs ...time.Time) predicate.Options
- func UpdatedAtLT(v time.Time) predicate.Options
- func UpdatedAtLTE(v time.Time) predicate.Options
- func UpdatedAtNEQ(v time.Time) predicate.Options
- func UpdatedAtNotIn(vs ...time.Time) predicate.Options
- func ValidColumn(column string) bool
- func Value(v string) predicate.Options
- func ValueContains(v string) predicate.Options
- func ValueContainsFold(v string) predicate.Options
- func ValueEQ(v string) predicate.Options
- func ValueEqualFold(v string) predicate.Options
- func ValueGT(v string) predicate.Options
- func ValueGTE(v string) predicate.Options
- func ValueHasPrefix(v string) predicate.Options
- func ValueHasSuffix(v string) predicate.Options
- func ValueIn(vs ...string) predicate.Options
- func ValueLT(v string) predicate.Options
- func ValueLTE(v string) predicate.Options
- func ValueNEQ(v string) predicate.Options
- func ValueNotIn(vs ...string) predicate.Options
Constants ¶
const ( // Label holds the string label denoting the options type in the database. Label = "options" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // Table holds the table name of the options in the database. Table = "options" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the created_at field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the updated_at field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. UpdateDefaultUpdatedAt func() time.Time // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error // ValueValidator is a validator for the "value" field. It is called by the builders before save. ValueValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldKey, FieldValue, }
Columns holds all SQL columns for options fields.
Functions ¶
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 KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.