Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DBCache) predicate.DBCache
- func ExpiredAt(v time.Time) predicate.DBCache
- func ExpiredAtEQ(v time.Time) predicate.DBCache
- func ExpiredAtGT(v time.Time) predicate.DBCache
- func ExpiredAtGTE(v time.Time) predicate.DBCache
- func ExpiredAtIn(vs ...time.Time) predicate.DBCache
- func ExpiredAtIsNil() predicate.DBCache
- func ExpiredAtLT(v time.Time) predicate.DBCache
- func ExpiredAtLTE(v time.Time) predicate.DBCache
- func ExpiredAtNEQ(v time.Time) predicate.DBCache
- func ExpiredAtNotIn(vs ...time.Time) predicate.DBCache
- func ExpiredAtNotNil() predicate.DBCache
- func ID(id int) predicate.DBCache
- func IDEQ(id int) predicate.DBCache
- func IDGT(id int) predicate.DBCache
- func IDGTE(id int) predicate.DBCache
- func IDIn(ids ...int) predicate.DBCache
- func IDLT(id int) predicate.DBCache
- func IDLTE(id int) predicate.DBCache
- func IDNEQ(id int) predicate.DBCache
- func IDNotIn(ids ...int) predicate.DBCache
- func Key(v string) predicate.DBCache
- func KeyContains(v string) predicate.DBCache
- func KeyContainsFold(v string) predicate.DBCache
- func KeyEQ(v string) predicate.DBCache
- func KeyEqualFold(v string) predicate.DBCache
- func KeyGT(v string) predicate.DBCache
- func KeyGTE(v string) predicate.DBCache
- func KeyHasPrefix(v string) predicate.DBCache
- func KeyHasSuffix(v string) predicate.DBCache
- func KeyIn(vs ...string) predicate.DBCache
- func KeyLT(v string) predicate.DBCache
- func KeyLTE(v string) predicate.DBCache
- func KeyNEQ(v string) predicate.DBCache
- func KeyNotIn(vs ...string) predicate.DBCache
- func Not(p predicate.DBCache) predicate.DBCache
- func Or(predicates ...predicate.DBCache) predicate.DBCache
- func ValidColumn(column string) bool
- func Value(v string) predicate.DBCache
- func ValueContains(v string) predicate.DBCache
- func ValueContainsFold(v string) predicate.DBCache
- func ValueEQ(v string) predicate.DBCache
- func ValueEqualFold(v string) predicate.DBCache
- func ValueGT(v string) predicate.DBCache
- func ValueGTE(v string) predicate.DBCache
- func ValueHasPrefix(v string) predicate.DBCache
- func ValueHasSuffix(v string) predicate.DBCache
- func ValueIn(vs ...string) predicate.DBCache
- func ValueIsNil() predicate.DBCache
- func ValueLT(v string) predicate.DBCache
- func ValueLTE(v string) predicate.DBCache
- func ValueNEQ(v string) predicate.DBCache
- func ValueNotIn(vs ...string) predicate.DBCache
- func ValueNotNil() predicate.DBCache
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the dbcache type in the database. Label = "db_cache" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldExpiredAt holds the string denoting the expired_at field in the database. FieldExpiredAt = "expired_at" // Table holds the table name of the dbcache in the database. Table = "db_cache" )
Variables ¶
var Columns = []string{ FieldID, FieldKey, FieldValue, FieldExpiredAt, }
Columns holds all SQL columns for dbcache fields.
var ( // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error )
Functions ¶
func ExpiredAt ¶
ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.
func ExpiredAtEQ ¶
ExpiredAtEQ applies the EQ predicate on the "expired_at" field.
func ExpiredAtGT ¶
ExpiredAtGT applies the GT predicate on the "expired_at" field.
func ExpiredAtGTE ¶
ExpiredAtGTE applies the GTE predicate on the "expired_at" field.
func ExpiredAtIn ¶
ExpiredAtIn applies the In predicate on the "expired_at" field.
func ExpiredAtIsNil ¶
ExpiredAtIsNil applies the IsNil predicate on the "expired_at" field.
func ExpiredAtLT ¶
ExpiredAtLT applies the LT predicate on the "expired_at" field.
func ExpiredAtLTE ¶
ExpiredAtLTE applies the LTE predicate on the "expired_at" field.
func ExpiredAtNEQ ¶
ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.
func ExpiredAtNotIn ¶
ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.
func ExpiredAtNotNil ¶
ExpiredAtNotNil applies the NotNil predicate on the "expired_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 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 ValueIsNil ¶
ValueIsNil applies the IsNil predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
func ValueNotNil ¶
ValueNotNil applies the NotNil predicate on the "value" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the DBCache queries.
func ByExpiredAt ¶
func ByExpiredAt(opts ...sql.OrderTermOption) OrderOption
ByExpiredAt orders the results by the expired_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 ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.