dbcache

package
v5.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for dbcache fields.

View Source
var (
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.DBCache) predicate.DBCache

And groups predicates with the AND operator between them.

func ExpiredAt

func ExpiredAt(v time.Time) predicate.DBCache

ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.

func ExpiredAtEQ

func ExpiredAtEQ(v time.Time) predicate.DBCache

ExpiredAtEQ applies the EQ predicate on the "expired_at" field.

func ExpiredAtGT

func ExpiredAtGT(v time.Time) predicate.DBCache

ExpiredAtGT applies the GT predicate on the "expired_at" field.

func ExpiredAtGTE

func ExpiredAtGTE(v time.Time) predicate.DBCache

ExpiredAtGTE applies the GTE predicate on the "expired_at" field.

func ExpiredAtIn

func ExpiredAtIn(vs ...time.Time) predicate.DBCache

ExpiredAtIn applies the In predicate on the "expired_at" field.

func ExpiredAtIsNil

func ExpiredAtIsNil() predicate.DBCache

ExpiredAtIsNil applies the IsNil predicate on the "expired_at" field.

func ExpiredAtLT

func ExpiredAtLT(v time.Time) predicate.DBCache

ExpiredAtLT applies the LT predicate on the "expired_at" field.

func ExpiredAtLTE

func ExpiredAtLTE(v time.Time) predicate.DBCache

ExpiredAtLTE applies the LTE predicate on the "expired_at" field.

func ExpiredAtNEQ

func ExpiredAtNEQ(v time.Time) predicate.DBCache

ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.

func ExpiredAtNotIn

func ExpiredAtNotIn(vs ...time.Time) predicate.DBCache

ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.

func ExpiredAtNotNil

func ExpiredAtNotNil() predicate.DBCache

ExpiredAtNotNil applies the NotNil predicate on the "expired_at" field.

func ID

func ID(id int) predicate.DBCache

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.DBCache

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.DBCache

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.DBCache

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.DBCache

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.DBCache

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.DBCache

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.DBCache

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.DBCache

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.DBCache

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.DBCache

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.DBCache

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.DBCache

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.DBCache

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.DBCache

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.DBCache

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.DBCache

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.DBCache

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.DBCache

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.DBCache

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.DBCache

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.DBCache

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.DBCache

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.DBCache) predicate.DBCache

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Value

func Value(v string) predicate.DBCache

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueContains

func ValueContains(v string) predicate.DBCache

ValueContains applies the Contains predicate on the "value" field.

func ValueContainsFold

func ValueContainsFold(v string) predicate.DBCache

ValueContainsFold applies the ContainsFold predicate on the "value" field.

func ValueEQ

func ValueEQ(v string) predicate.DBCache

ValueEQ applies the EQ predicate on the "value" field.

func ValueEqualFold

func ValueEqualFold(v string) predicate.DBCache

ValueEqualFold applies the EqualFold predicate on the "value" field.

func ValueGT

func ValueGT(v string) predicate.DBCache

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v string) predicate.DBCache

ValueGTE applies the GTE predicate on the "value" field.

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.DBCache

ValueHasPrefix applies the HasPrefix predicate on the "value" field.

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.DBCache

ValueHasSuffix applies the HasSuffix predicate on the "value" field.

func ValueIn

func ValueIn(vs ...string) predicate.DBCache

ValueIn applies the In predicate on the "value" field.

func ValueIsNil

func ValueIsNil() predicate.DBCache

ValueIsNil applies the IsNil predicate on the "value" field.

func ValueLT

func ValueLT(v string) predicate.DBCache

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v string) predicate.DBCache

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v string) predicate.DBCache

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...string) predicate.DBCache

ValueNotIn applies the NotIn predicate on the "value" field.

func ValueNotNil

func ValueNotNil() predicate.DBCache

ValueNotNil applies the NotNil predicate on the "value" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL