package
0.0.0-20230520021403-3b51f2ee9624
Repository: https://github.com/openpanel/core.git
Documentation: pkg.go.dev
# Functions
And groups predicates with the AND operator between them.
ByCreatedAt orders the results by the created_at field.
ByExpiresAt orders the results by the expires_at field.
ByID orders the results by the id field.
ByKey orders the results by the key field.
ByUpdatedAt orders the results by the updated_at field.
ByValue orders the results by the value field.
CreatedAt applies equality check predicate on the "created_at" field.
CreatedAtEQ applies the EQ predicate on the "created_at" field.
CreatedAtGT applies the GT predicate on the "created_at" field.
CreatedAtGTE applies the GTE predicate on the "created_at" field.
CreatedAtIn applies the In predicate on the "created_at" field.
CreatedAtLT applies the LT predicate on the "created_at" field.
CreatedAtLTE applies the LTE predicate on the "created_at" field.
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
ExpiresAt applies equality check predicate on the "expires_at" field.
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
ExpiresAtGT applies the GT predicate on the "expires_at" field.
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
ExpiresAtIn applies the In predicate on the "expires_at" field.
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
ExpiresAtLT applies the LT predicate on the "expires_at" field.
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
ID filters vertices based on their ID field.
IDEQ applies the EQ predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
Key applies equality check predicate on the "key" field.
KeyContains applies the Contains predicate on the "key" field.
KeyContainsFold applies the ContainsFold predicate on the "key" field.
KeyEQ applies the EQ predicate on the "key" field.
KeyEqualFold applies the EqualFold predicate on the "key" field.
KeyGT applies the GT predicate on the "key" field.
KeyGTE applies the GTE predicate on the "key" field.
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
KeyIn applies the In predicate on the "key" field.
KeyLT applies the LT predicate on the "key" field.
KeyLTE applies the LTE predicate on the "key" field.
KeyNEQ applies the NEQ predicate on the "key" field.
KeyNotIn applies the NotIn predicate on the "key" field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
UpdatedAt applies equality check predicate on the "updated_at" field.
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
UpdatedAtGT applies the GT predicate on the "updated_at" field.
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
UpdatedAtIn applies the In predicate on the "updated_at" field.
UpdatedAtLT applies the LT predicate on the "updated_at" field.
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
ValidColumn reports if the column name is valid (part of the table columns).
Value applies equality check predicate on the "value" field.
ValueContains applies the Contains predicate on the "value" field.
ValueContainsFold applies the ContainsFold predicate on the "value" field.
ValueEQ applies the EQ predicate on the "value" field.
ValueEqualFold applies the EqualFold predicate on the "value" field.
ValueGT applies the GT predicate on the "value" field.
ValueGTE applies the GTE predicate on the "value" field.
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
ValueIn applies the In predicate on the "value" field.
ValueLT applies the LT predicate on the "value" field.
ValueLTE applies the LTE predicate on the "value" field.
ValueNEQ applies the NEQ predicate on the "value" field.
ValueNotIn applies the NotIn predicate on the "value" field.
# Constants
FieldCreatedAt holds the string denoting the created_at field in the database.
FieldExpiresAt holds the string denoting the expires_at field in the database.
FieldID holds the string denoting the id field in the database.
FieldKey holds the string denoting the key field in the database.
FieldUpdatedAt holds the string denoting the updated_at field in the database.
FieldValue holds the string denoting the value field in the database.
Label holds the string label denoting the kv type in the database.
Table holds the table name of the kv in the database.
# Variables
Columns holds all SQL columns for kv fields.
DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
# Type aliases
OrderOption defines the ordering options for the KV queries.