identity

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 identity type in the database.
	Label = "identity"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldLevel holds the string denoting the level field in the database.
	FieldLevel = "level"
	// FieldEncryptedID holds the string denoting the encrypted_id field in the database.
	FieldEncryptedID = "encrypted_id"
	// FieldEncryptedBody holds the string denoting the encrypted_body field in the database.
	FieldEncryptedBody = "encrypted_body"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// Table holds the table name of the identity in the database.
	Table = "identities"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "identities"
	// 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

Columns holds all SQL columns for identity fields.

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

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

Functions

func And

func And(predicates ...predicate.Identity) predicate.Identity

And groups predicates with the AND operator between them.

func EncryptedBody

func EncryptedBody(v string) predicate.Identity

EncryptedBody applies equality check predicate on the "encrypted_body" field. It's identical to EncryptedBodyEQ.

func EncryptedBodyContains

func EncryptedBodyContains(v string) predicate.Identity

EncryptedBodyContains applies the Contains predicate on the "encrypted_body" field.

func EncryptedBodyContainsFold

func EncryptedBodyContainsFold(v string) predicate.Identity

EncryptedBodyContainsFold applies the ContainsFold predicate on the "encrypted_body" field.

func EncryptedBodyEQ

func EncryptedBodyEQ(v string) predicate.Identity

EncryptedBodyEQ applies the EQ predicate on the "encrypted_body" field.

func EncryptedBodyEqualFold

func EncryptedBodyEqualFold(v string) predicate.Identity

EncryptedBodyEqualFold applies the EqualFold predicate on the "encrypted_body" field.

func EncryptedBodyGT

func EncryptedBodyGT(v string) predicate.Identity

EncryptedBodyGT applies the GT predicate on the "encrypted_body" field.

func EncryptedBodyGTE

func EncryptedBodyGTE(v string) predicate.Identity

EncryptedBodyGTE applies the GTE predicate on the "encrypted_body" field.

func EncryptedBodyHasPrefix

func EncryptedBodyHasPrefix(v string) predicate.Identity

EncryptedBodyHasPrefix applies the HasPrefix predicate on the "encrypted_body" field.

func EncryptedBodyHasSuffix

func EncryptedBodyHasSuffix(v string) predicate.Identity

EncryptedBodyHasSuffix applies the HasSuffix predicate on the "encrypted_body" field.

func EncryptedBodyIn

func EncryptedBodyIn(vs ...string) predicate.Identity

EncryptedBodyIn applies the In predicate on the "encrypted_body" field.

func EncryptedBodyLT

func EncryptedBodyLT(v string) predicate.Identity

EncryptedBodyLT applies the LT predicate on the "encrypted_body" field.

func EncryptedBodyLTE

func EncryptedBodyLTE(v string) predicate.Identity

EncryptedBodyLTE applies the LTE predicate on the "encrypted_body" field.

func EncryptedBodyNEQ

func EncryptedBodyNEQ(v string) predicate.Identity

EncryptedBodyNEQ applies the NEQ predicate on the "encrypted_body" field.

func EncryptedBodyNotIn

func EncryptedBodyNotIn(vs ...string) predicate.Identity

EncryptedBodyNotIn applies the NotIn predicate on the "encrypted_body" field.

func EncryptedID

func EncryptedID(v string) predicate.Identity

EncryptedID applies equality check predicate on the "encrypted_id" field. It's identical to EncryptedIDEQ.

func EncryptedIDContains

func EncryptedIDContains(v string) predicate.Identity

EncryptedIDContains applies the Contains predicate on the "encrypted_id" field.

func EncryptedIDContainsFold

func EncryptedIDContainsFold(v string) predicate.Identity

EncryptedIDContainsFold applies the ContainsFold predicate on the "encrypted_id" field.

func EncryptedIDEQ

func EncryptedIDEQ(v string) predicate.Identity

EncryptedIDEQ applies the EQ predicate on the "encrypted_id" field.

func EncryptedIDEqualFold

func EncryptedIDEqualFold(v string) predicate.Identity

EncryptedIDEqualFold applies the EqualFold predicate on the "encrypted_id" field.

func EncryptedIDGT

func EncryptedIDGT(v string) predicate.Identity

EncryptedIDGT applies the GT predicate on the "encrypted_id" field.

func EncryptedIDGTE

func EncryptedIDGTE(v string) predicate.Identity

EncryptedIDGTE applies the GTE predicate on the "encrypted_id" field.

func EncryptedIDHasPrefix

func EncryptedIDHasPrefix(v string) predicate.Identity

EncryptedIDHasPrefix applies the HasPrefix predicate on the "encrypted_id" field.

func EncryptedIDHasSuffix

func EncryptedIDHasSuffix(v string) predicate.Identity

EncryptedIDHasSuffix applies the HasSuffix predicate on the "encrypted_id" field.

func EncryptedIDIn

func EncryptedIDIn(vs ...string) predicate.Identity

EncryptedIDIn applies the In predicate on the "encrypted_id" field.

func EncryptedIDLT

func EncryptedIDLT(v string) predicate.Identity

EncryptedIDLT applies the LT predicate on the "encrypted_id" field.

func EncryptedIDLTE

func EncryptedIDLTE(v string) predicate.Identity

EncryptedIDLTE applies the LTE predicate on the "encrypted_id" field.

func EncryptedIDNEQ

func EncryptedIDNEQ(v string) predicate.Identity

EncryptedIDNEQ applies the NEQ predicate on the "encrypted_id" field.

func EncryptedIDNotIn

func EncryptedIDNotIn(vs ...string) predicate.Identity

EncryptedIDNotIn applies the NotIn predicate on the "encrypted_id" field.

func HasAccount

func HasAccount() predicate.Identity

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

func HasAccountWith

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

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

func Hash

func Hash(v string) predicate.Identity

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Identity

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Identity

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Identity

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Identity

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Identity

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Identity

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Identity

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Identity

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Identity

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Identity

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Identity

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Identity

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Identity

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id int) predicate.Identity

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Identity

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Identity

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Identity

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Identity

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Identity

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Identity

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Level

func Level(v int32) predicate.Identity

Level applies equality check predicate on the "level" field. It's identical to LevelEQ.

func LevelEQ

func LevelEQ(v int32) predicate.Identity

LevelEQ applies the EQ predicate on the "level" field.

func LevelGT

func LevelGT(v int32) predicate.Identity

LevelGT applies the GT predicate on the "level" field.

func LevelGTE

func LevelGTE(v int32) predicate.Identity

LevelGTE applies the GTE predicate on the "level" field.

func LevelIn

func LevelIn(vs ...int32) predicate.Identity

LevelIn applies the In predicate on the "level" field.

func LevelLT

func LevelLT(v int32) predicate.Identity

LevelLT applies the LT predicate on the "level" field.

func LevelLTE

func LevelLTE(v int32) predicate.Identity

LevelLTE applies the LTE predicate on the "level" field.

func LevelNEQ

func LevelNEQ(v int32) predicate.Identity

LevelNEQ applies the NEQ predicate on the "level" field.

func LevelNotIn

func LevelNotIn(vs ...int32) predicate.Identity

LevelNotIn applies the NotIn predicate on the "level" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Identity) predicate.Identity

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