Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.LocalKey) predicate.LocalKey
- func ID(id uuid.UUID) predicate.LocalKey
- func IDEQ(id uuid.UUID) predicate.LocalKey
- func IDGT(id uuid.UUID) predicate.LocalKey
- func IDGTE(id uuid.UUID) predicate.LocalKey
- func IDIn(ids ...uuid.UUID) predicate.LocalKey
- func IDLT(id uuid.UUID) predicate.LocalKey
- func IDLTE(id uuid.UUID) predicate.LocalKey
- func IDNEQ(id uuid.UUID) predicate.LocalKey
- func IDNotIn(ids ...uuid.UUID) predicate.LocalKey
- func KeyType(v string) predicate.LocalKey
- func KeyTypeContains(v string) predicate.LocalKey
- func KeyTypeContainsFold(v string) predicate.LocalKey
- func KeyTypeEQ(v string) predicate.LocalKey
- func KeyTypeEqualFold(v string) predicate.LocalKey
- func KeyTypeGT(v string) predicate.LocalKey
- func KeyTypeGTE(v string) predicate.LocalKey
- func KeyTypeHasPrefix(v string) predicate.LocalKey
- func KeyTypeHasSuffix(v string) predicate.LocalKey
- func KeyTypeIn(vs ...string) predicate.LocalKey
- func KeyTypeLT(v string) predicate.LocalKey
- func KeyTypeLTE(v string) predicate.LocalKey
- func KeyTypeNEQ(v string) predicate.LocalKey
- func KeyTypeNotIn(vs ...string) predicate.LocalKey
- func Not(p predicate.LocalKey) predicate.LocalKey
- func Or(predicates ...predicate.LocalKey) predicate.LocalKey
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the localkey type in the database. Label = "local_key" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldLocalKey holds the string denoting the local_key field in the database. FieldLocalKey = "local_key" // FieldKeyType holds the string denoting the key_type field in the database. FieldKeyType = "key_type" // Table holds the table name of the localkey in the database. Table = "local_keys" )
Variables ¶
var Columns = []string{ FieldID, FieldLocalKey, FieldKeyType, }
Columns holds all SQL columns for localkey fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func KeyType ¶
KeyType applies equality check predicate on the "key_type" field. It's identical to KeyTypeEQ.
func KeyTypeContains ¶
KeyTypeContains applies the Contains predicate on the "key_type" field.
func KeyTypeContainsFold ¶
KeyTypeContainsFold applies the ContainsFold predicate on the "key_type" field.
func KeyTypeEqualFold ¶
KeyTypeEqualFold applies the EqualFold predicate on the "key_type" field.
func KeyTypeGTE ¶
KeyTypeGTE applies the GTE predicate on the "key_type" field.
func KeyTypeHasPrefix ¶
KeyTypeHasPrefix applies the HasPrefix predicate on the "key_type" field.
func KeyTypeHasSuffix ¶
KeyTypeHasSuffix applies the HasSuffix predicate on the "key_type" field.
func KeyTypeLTE ¶
KeyTypeLTE applies the LTE predicate on the "key_type" field.
func KeyTypeNEQ ¶
KeyTypeNEQ applies the NEQ predicate on the "key_type" field.
func KeyTypeNotIn ¶
KeyTypeNotIn applies the NotIn predicate on the "key_type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the LocalKey queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKeyType ¶
func ByKeyType(opts ...sql.OrderTermOption) OrderOption
ByKeyType orders the results by the key_type field.