accesskey

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the accesskey type in the database.
	Label = "access_key"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDid holds the string denoting the did field in the database.
	FieldDid = "did"
	// FieldBody holds the string denoting the body field in the database.
	FieldBody = "body"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// Table holds the table name of the accesskey in the database.
	Table = "access_keys"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "access_keys"
	// AccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "entaccount" package.
	AccountInverseTable = "accounts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "account"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldDid,
	FieldBody,
}

Columns holds all SQL columns for accesskey fields.

View Source
var ForeignKeys = []string{
	"account",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "access_keys" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.AccessKey) predicate.AccessKey

And groups predicates with the AND operator between them.

func Did

func Did(v string) predicate.AccessKey

Did applies equality check predicate on the "did" field. It's identical to DidEQ.

func DidContains

func DidContains(v string) predicate.AccessKey

DidContains applies the Contains predicate on the "did" field.

func DidContainsFold

func DidContainsFold(v string) predicate.AccessKey

DidContainsFold applies the ContainsFold predicate on the "did" field.

func DidEQ

func DidEQ(v string) predicate.AccessKey

DidEQ applies the EQ predicate on the "did" field.

func DidEqualFold

func DidEqualFold(v string) predicate.AccessKey

DidEqualFold applies the EqualFold predicate on the "did" field.

func DidGT

func DidGT(v string) predicate.AccessKey

DidGT applies the GT predicate on the "did" field.

func DidGTE

func DidGTE(v string) predicate.AccessKey

DidGTE applies the GTE predicate on the "did" field.

func DidHasPrefix

func DidHasPrefix(v string) predicate.AccessKey

DidHasPrefix applies the HasPrefix predicate on the "did" field.

func DidHasSuffix

func DidHasSuffix(v string) predicate.AccessKey

DidHasSuffix applies the HasSuffix predicate on the "did" field.

func DidIn

func DidIn(vs ...string) predicate.AccessKey

DidIn applies the In predicate on the "did" field.

func DidLT

func DidLT(v string) predicate.AccessKey

DidLT applies the LT predicate on the "did" field.

func DidLTE

func DidLTE(v string) predicate.AccessKey

DidLTE applies the LTE predicate on the "did" field.

func DidNEQ

func DidNEQ(v string) predicate.AccessKey

DidNEQ applies the NEQ predicate on the "did" field.

func DidNotIn

func DidNotIn(vs ...string) predicate.AccessKey

DidNotIn applies the NotIn predicate on the "did" field.

func HasAccount

func HasAccount() predicate.AccessKey

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Account) predicate.AccessKey

HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.AccessKey

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.AccessKey

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.AccessKey

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.AccessKey

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.AccessKey

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.AccessKey

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.AccessKey

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.AccessKey) predicate.AccessKey

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

This section is empty.

Jump to

Keyboard shortcuts

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