property

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 property type in the database.
	Label = "property"
	// 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 property in the database.
	Table = "properties"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "properties"
	// 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 property fields.

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

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

Functions

func And

func And(predicates ...predicate.Property) predicate.Property

And groups predicates with the AND operator between them.

func EncryptedBody

func EncryptedBody(v string) predicate.Property

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

func EncryptedBodyContains

func EncryptedBodyContains(v string) predicate.Property

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

func EncryptedBodyContainsFold

func EncryptedBodyContainsFold(v string) predicate.Property

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

func EncryptedBodyEQ

func EncryptedBodyEQ(v string) predicate.Property

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

func EncryptedBodyEqualFold

func EncryptedBodyEqualFold(v string) predicate.Property

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

func EncryptedBodyGT

func EncryptedBodyGT(v string) predicate.Property

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

func EncryptedBodyGTE

func EncryptedBodyGTE(v string) predicate.Property

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

func EncryptedBodyHasPrefix

func EncryptedBodyHasPrefix(v string) predicate.Property

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

func EncryptedBodyHasSuffix

func EncryptedBodyHasSuffix(v string) predicate.Property

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

func EncryptedBodyIn

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

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

func EncryptedBodyLT

func EncryptedBodyLT(v string) predicate.Property

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

func EncryptedBodyLTE

func EncryptedBodyLTE(v string) predicate.Property

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

func EncryptedBodyNEQ

func EncryptedBodyNEQ(v string) predicate.Property

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

func EncryptedBodyNotIn

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

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

func EncryptedID

func EncryptedID(v string) predicate.Property

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

func EncryptedIDContains

func EncryptedIDContains(v string) predicate.Property

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

func EncryptedIDContainsFold

func EncryptedIDContainsFold(v string) predicate.Property

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

func EncryptedIDEQ

func EncryptedIDEQ(v string) predicate.Property

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

func EncryptedIDEqualFold

func EncryptedIDEqualFold(v string) predicate.Property

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

func EncryptedIDGT

func EncryptedIDGT(v string) predicate.Property

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

func EncryptedIDGTE

func EncryptedIDGTE(v string) predicate.Property

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

func EncryptedIDHasPrefix

func EncryptedIDHasPrefix(v string) predicate.Property

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

func EncryptedIDHasSuffix

func EncryptedIDHasSuffix(v string) predicate.Property

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

func EncryptedIDIn

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

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

func EncryptedIDLT

func EncryptedIDLT(v string) predicate.Property

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

func EncryptedIDLTE

func EncryptedIDLTE(v string) predicate.Property

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

func EncryptedIDNEQ

func EncryptedIDNEQ(v string) predicate.Property

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

func EncryptedIDNotIn

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

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

func HasAccount

func HasAccount() predicate.Property

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

func HasAccountWith

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

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

func Hash

func Hash(v string) predicate.Property

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

func HashContains

func HashContains(v string) predicate.Property

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

func HashContainsFold

func HashContainsFold(v string) predicate.Property

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

func HashEQ

func HashEQ(v string) predicate.Property

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

func HashEqualFold

func HashEqualFold(v string) predicate.Property

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

func HashGT

func HashGT(v string) predicate.Property

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

func HashGTE

func HashGTE(v string) predicate.Property

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

func HashHasPrefix

func HashHasPrefix(v string) predicate.Property

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

func HashHasSuffix

func HashHasSuffix(v string) predicate.Property

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

func HashIn

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

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

func HashLT

func HashLT(v string) predicate.Property

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

func HashLTE

func HashLTE(v string) predicate.Property

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

func HashNEQ

func HashNEQ(v string) predicate.Property

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

func HashNotIn

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

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

func ID

func ID(id int) predicate.Property

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Property

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Property

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Property

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Property

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Property

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Property

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Level

func Level(v int32) predicate.Property

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

func LevelEQ

func LevelEQ(v int32) predicate.Property

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

func LevelGT

func LevelGT(v int32) predicate.Property

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

func LevelGTE

func LevelGTE(v int32) predicate.Property

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

func LevelIn

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

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

func LevelLT

func LevelLT(v int32) predicate.Property

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

func LevelLTE

func LevelLTE(v int32) predicate.Property

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

func LevelNEQ

func LevelNEQ(v int32) predicate.Property

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

func LevelNotIn

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

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

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