Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ConfigEntry) predicate.ConfigEntry
- func CreatedAt(v time.Time) predicate.ConfigEntry
- func CreatedAtEQ(v time.Time) predicate.ConfigEntry
- func CreatedAtGT(v time.Time) predicate.ConfigEntry
- func CreatedAtGTE(v time.Time) predicate.ConfigEntry
- func CreatedAtIn(vs ...time.Time) predicate.ConfigEntry
- func CreatedAtLT(v time.Time) predicate.ConfigEntry
- func CreatedAtLTE(v time.Time) predicate.ConfigEntry
- func CreatedAtNEQ(v time.Time) predicate.ConfigEntry
- func CreatedAtNotIn(vs ...time.Time) predicate.ConfigEntry
- func ID(id int) predicate.ConfigEntry
- func IDEQ(id int) predicate.ConfigEntry
- func IDGT(id int) predicate.ConfigEntry
- func IDGTE(id int) predicate.ConfigEntry
- func IDIn(ids ...int) predicate.ConfigEntry
- func IDLT(id int) predicate.ConfigEntry
- func IDLTE(id int) predicate.ConfigEntry
- func IDNEQ(id int) predicate.ConfigEntry
- func IDNotIn(ids ...int) predicate.ConfigEntry
- func Key(v string) predicate.ConfigEntry
- func KeyContains(v string) predicate.ConfigEntry
- func KeyContainsFold(v string) predicate.ConfigEntry
- func KeyEQ(v string) predicate.ConfigEntry
- func KeyEqualFold(v string) predicate.ConfigEntry
- func KeyGT(v string) predicate.ConfigEntry
- func KeyGTE(v string) predicate.ConfigEntry
- func KeyHasPrefix(v string) predicate.ConfigEntry
- func KeyHasSuffix(v string) predicate.ConfigEntry
- func KeyIn(vs ...string) predicate.ConfigEntry
- func KeyLT(v string) predicate.ConfigEntry
- func KeyLTE(v string) predicate.ConfigEntry
- func KeyNEQ(v string) predicate.ConfigEntry
- func KeyNotIn(vs ...string) predicate.ConfigEntry
- func Not(p predicate.ConfigEntry) predicate.ConfigEntry
- func Or(predicates ...predicate.ConfigEntry) predicate.ConfigEntry
- func UpdatedAt(v time.Time) predicate.ConfigEntry
- func UpdatedAtEQ(v time.Time) predicate.ConfigEntry
- func UpdatedAtGT(v time.Time) predicate.ConfigEntry
- func UpdatedAtGTE(v time.Time) predicate.ConfigEntry
- func UpdatedAtIn(vs ...time.Time) predicate.ConfigEntry
- func UpdatedAtIsNil() predicate.ConfigEntry
- func UpdatedAtLT(v time.Time) predicate.ConfigEntry
- func UpdatedAtLTE(v time.Time) predicate.ConfigEntry
- func UpdatedAtNEQ(v time.Time) predicate.ConfigEntry
- func UpdatedAtNotIn(vs ...time.Time) predicate.ConfigEntry
- func UpdatedAtNotNil() predicate.ConfigEntry
- func ValidColumn(column string) bool
- func Value(v string) predicate.ConfigEntry
- func ValueContains(v string) predicate.ConfigEntry
- func ValueContainsFold(v string) predicate.ConfigEntry
- func ValueEQ(v string) predicate.ConfigEntry
- func ValueEqualFold(v string) predicate.ConfigEntry
- func ValueGT(v string) predicate.ConfigEntry
- func ValueGTE(v string) predicate.ConfigEntry
- func ValueHasPrefix(v string) predicate.ConfigEntry
- func ValueHasSuffix(v string) predicate.ConfigEntry
- func ValueIn(vs ...string) predicate.ConfigEntry
- func ValueLT(v string) predicate.ConfigEntry
- func ValueLTE(v string) predicate.ConfigEntry
- func ValueNEQ(v string) predicate.ConfigEntry
- func ValueNotIn(vs ...string) predicate.ConfigEntry
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the configentry type in the database. Label = "config_entry" // 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 configentry in the database. Table = "config" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt 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 configentry fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ConfigEntry) predicate.ConfigEntry
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ConfigEntry
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ConfigEntry
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ConfigEntry
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ConfigEntry
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ConfigEntry
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ConfigEntry
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ConfigEntry
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ConfigEntry
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ConfigEntry
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func IDGTE ¶
func IDGTE(id int) predicate.ConfigEntry
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ConfigEntry
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ConfigEntry
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ConfigEntry
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ConfigEntry
IDNotIn applies the NotIn predicate on the ID field.
func Key ¶
func Key(v string) predicate.ConfigEntry
Key applies equality check predicate on the "key" field. It's identical to KeyEQ.
func KeyContains ¶
func KeyContains(v string) predicate.ConfigEntry
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
func KeyContainsFold(v string) predicate.ConfigEntry
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEQ ¶
func KeyEQ(v string) predicate.ConfigEntry
KeyEQ applies the EQ predicate on the "key" field.
func KeyEqualFold ¶
func KeyEqualFold(v string) predicate.ConfigEntry
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyGT ¶
func KeyGT(v string) predicate.ConfigEntry
KeyGT applies the GT predicate on the "key" field.
func KeyGTE ¶
func KeyGTE(v string) predicate.ConfigEntry
KeyGTE applies the GTE predicate on the "key" field.
func KeyHasPrefix ¶
func KeyHasPrefix(v string) predicate.ConfigEntry
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
func KeyHasSuffix(v string) predicate.ConfigEntry
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func KeyIn ¶
func KeyIn(vs ...string) predicate.ConfigEntry
KeyIn applies the In predicate on the "key" field.
func KeyLT ¶
func KeyLT(v string) predicate.ConfigEntry
KeyLT applies the LT predicate on the "key" field.
func KeyLTE ¶
func KeyLTE(v string) predicate.ConfigEntry
KeyLTE applies the LTE predicate on the "key" field.
func KeyNEQ ¶
func KeyNEQ(v string) predicate.ConfigEntry
KeyNEQ applies the NEQ predicate on the "key" field.
func KeyNotIn ¶
func KeyNotIn(vs ...string) predicate.ConfigEntry
KeyNotIn applies the NotIn predicate on the "key" field.
func Not ¶
func Not(p predicate.ConfigEntry) predicate.ConfigEntry
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ConfigEntry) predicate.ConfigEntry
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ConfigEntry
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ConfigEntry
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ConfigEntry
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ConfigEntry
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ConfigEntry
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.ConfigEntry
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ConfigEntry
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ConfigEntry
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ConfigEntry
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ConfigEntry
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.ConfigEntry
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
func Value(v string) predicate.ConfigEntry
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
func ValueContains(v string) predicate.ConfigEntry
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
func ValueContainsFold(v string) predicate.ConfigEntry
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEQ ¶
func ValueEQ(v string) predicate.ConfigEntry
ValueEQ applies the EQ predicate on the "value" field.
func ValueEqualFold ¶
func ValueEqualFold(v string) predicate.ConfigEntry
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueGT ¶
func ValueGT(v string) predicate.ConfigEntry
ValueGT applies the GT predicate on the "value" field.
func ValueGTE ¶
func ValueGTE(v string) predicate.ConfigEntry
ValueGTE applies the GTE predicate on the "value" field.
func ValueHasPrefix ¶
func ValueHasPrefix(v string) predicate.ConfigEntry
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
func ValueHasSuffix(v string) predicate.ConfigEntry
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueIn ¶
func ValueIn(vs ...string) predicate.ConfigEntry
ValueIn applies the In predicate on the "value" field.
func ValueLT ¶
func ValueLT(v string) predicate.ConfigEntry
ValueLT applies the LT predicate on the "value" field.
func ValueLTE ¶
func ValueLTE(v string) predicate.ConfigEntry
ValueLTE applies the LTE predicate on the "value" field.
func ValueNEQ ¶
func ValueNEQ(v string) predicate.ConfigEntry
ValueNEQ applies the NEQ predicate on the "value" field.
func ValueNotIn ¶
func ValueNotIn(vs ...string) predicate.ConfigEntry
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ConfigEntry queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.