localkey

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Columns holds all SQL columns for localkey fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

func And(predicates ...predicate.LocalKey) predicate.LocalKey

And groups predicates with the AND operator between them.

func ID

func ID(id uuid.UUID) predicate.LocalKey

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.LocalKey

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.LocalKey

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.LocalKey

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.LocalKey

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.LocalKey

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.LocalKey

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.LocalKey

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.LocalKey

IDNotIn applies the NotIn predicate on the ID field.

func KeyType

func KeyType(v string) predicate.LocalKey

KeyType applies equality check predicate on the "key_type" field. It's identical to KeyTypeEQ.

func KeyTypeContains

func KeyTypeContains(v string) predicate.LocalKey

KeyTypeContains applies the Contains predicate on the "key_type" field.

func KeyTypeContainsFold

func KeyTypeContainsFold(v string) predicate.LocalKey

KeyTypeContainsFold applies the ContainsFold predicate on the "key_type" field.

func KeyTypeEQ

func KeyTypeEQ(v string) predicate.LocalKey

KeyTypeEQ applies the EQ predicate on the "key_type" field.

func KeyTypeEqualFold

func KeyTypeEqualFold(v string) predicate.LocalKey

KeyTypeEqualFold applies the EqualFold predicate on the "key_type" field.

func KeyTypeGT

func KeyTypeGT(v string) predicate.LocalKey

KeyTypeGT applies the GT predicate on the "key_type" field.

func KeyTypeGTE

func KeyTypeGTE(v string) predicate.LocalKey

KeyTypeGTE applies the GTE predicate on the "key_type" field.

func KeyTypeHasPrefix

func KeyTypeHasPrefix(v string) predicate.LocalKey

KeyTypeHasPrefix applies the HasPrefix predicate on the "key_type" field.

func KeyTypeHasSuffix

func KeyTypeHasSuffix(v string) predicate.LocalKey

KeyTypeHasSuffix applies the HasSuffix predicate on the "key_type" field.

func KeyTypeIn

func KeyTypeIn(vs ...string) predicate.LocalKey

KeyTypeIn applies the In predicate on the "key_type" field.

func KeyTypeLT

func KeyTypeLT(v string) predicate.LocalKey

KeyTypeLT applies the LT predicate on the "key_type" field.

func KeyTypeLTE

func KeyTypeLTE(v string) predicate.LocalKey

KeyTypeLTE applies the LTE predicate on the "key_type" field.

func KeyTypeNEQ

func KeyTypeNEQ(v string) predicate.LocalKey

KeyTypeNEQ applies the NEQ predicate on the "key_type" field.

func KeyTypeNotIn

func KeyTypeNotIn(vs ...string) predicate.LocalKey

KeyTypeNotIn applies the NotIn predicate on the "key_type" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.LocalKey) predicate.LocalKey

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).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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