account

package
v0.0.0-...-cc6bba2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the account type in the database.
	Label = "account"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldWalletID holds the string denoting the wallet_id field in the database.
	FieldWalletID = "wallet_id"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldAccountIndex holds the string denoting the account_index field in the database.
	FieldAccountIndex = "account_index"
	// FieldPrivateKey holds the string denoting the private_key field in the database.
	FieldPrivateKey = "private_key"
	// FieldWork holds the string denoting the work field in the database.
	FieldWork = "work"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeWallet holds the string denoting the wallet edge name in mutations.
	EdgeWallet = "wallet"
	// EdgeBlocks holds the string denoting the blocks edge name in mutations.
	EdgeBlocks = "blocks"
	// Table holds the table name of the account in the database.
	Table = "accounts"
	// WalletTable is the table that holds the wallet relation/edge.
	WalletTable = "accounts"
	// WalletInverseTable is the table name for the Wallet entity.
	// It exists in this package in order to avoid circular dependency with the "wallet" package.
	WalletInverseTable = "wallets"
	// WalletColumn is the table column denoting the wallet relation/edge.
	WalletColumn = "wallet_id"
	// BlocksTable is the table that holds the blocks relation/edge.
	BlocksTable = "blocks"
	// BlocksInverseTable is the table name for the Block entity.
	// It exists in this package in order to avoid circular dependency with the "block" package.
	BlocksInverseTable = "blocks"
	// BlocksColumn is the table column denoting the blocks relation/edge.
	BlocksColumn = "account_id"
)

Variables

View Source
var (
	// AddressValidator is a validator for the "address" field. It is called by the builders before save.
	AddressValidator func(string) error
	// PrivateKeyValidator is a validator for the "private_key" field. It is called by the builders before save.
	PrivateKeyValidator func(string) error
	// DefaultWork holds the default value on creation for the "work" field.
	DefaultWork bool
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for account fields.

Functions

func AccountIndex

func AccountIndex(v int) predicate.Account

AccountIndex applies equality check predicate on the "account_index" field. It's identical to AccountIndexEQ.

func AccountIndexEQ

func AccountIndexEQ(v int) predicate.Account

AccountIndexEQ applies the EQ predicate on the "account_index" field.

func AccountIndexGT

func AccountIndexGT(v int) predicate.Account

AccountIndexGT applies the GT predicate on the "account_index" field.

func AccountIndexGTE

func AccountIndexGTE(v int) predicate.Account

AccountIndexGTE applies the GTE predicate on the "account_index" field.

func AccountIndexIn

func AccountIndexIn(vs ...int) predicate.Account

AccountIndexIn applies the In predicate on the "account_index" field.

func AccountIndexIsNil

func AccountIndexIsNil() predicate.Account

AccountIndexIsNil applies the IsNil predicate on the "account_index" field.

func AccountIndexLT

func AccountIndexLT(v int) predicate.Account

AccountIndexLT applies the LT predicate on the "account_index" field.

func AccountIndexLTE

func AccountIndexLTE(v int) predicate.Account

AccountIndexLTE applies the LTE predicate on the "account_index" field.

func AccountIndexNEQ

func AccountIndexNEQ(v int) predicate.Account

AccountIndexNEQ applies the NEQ predicate on the "account_index" field.

func AccountIndexNotIn

func AccountIndexNotIn(vs ...int) predicate.Account

AccountIndexNotIn applies the NotIn predicate on the "account_index" field.

func AccountIndexNotNil

func AccountIndexNotNil() predicate.Account

AccountIndexNotNil applies the NotNil predicate on the "account_index" field.

func Address

func Address(v string) predicate.Account

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.Account

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.Account

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.Account

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.Account

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.Account

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.Account

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.Account

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.Account

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

func AddressIn(vs ...string) predicate.Account

AddressIn applies the In predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.Account

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.Account

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.Account

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

func AddressNotIn(vs ...string) predicate.Account

AddressNotIn applies the NotIn predicate on the "address" field.

func And

func And(predicates ...predicate.Account) predicate.Account

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Account

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Account

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Account

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Account

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Account

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Account

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Account

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Account

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Account

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasBlocks

func HasBlocks() predicate.Account

HasBlocks applies the HasEdge predicate on the "blocks" edge.

func HasBlocksWith

func HasBlocksWith(preds ...predicate.Block) predicate.Account

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

func HasWallet

func HasWallet() predicate.Account

HasWallet applies the HasEdge predicate on the "wallet" edge.

func HasWalletWith

func HasWalletWith(preds ...predicate.Wallet) predicate.Account

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

func ID

func ID(id uuid.UUID) predicate.Account

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Account

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Account

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Account

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Account

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Account

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Account

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func PrivateKey

func PrivateKey(v string) predicate.Account

PrivateKey applies equality check predicate on the "private_key" field. It's identical to PrivateKeyEQ.

func PrivateKeyContains

func PrivateKeyContains(v string) predicate.Account

PrivateKeyContains applies the Contains predicate on the "private_key" field.

func PrivateKeyContainsFold

func PrivateKeyContainsFold(v string) predicate.Account

PrivateKeyContainsFold applies the ContainsFold predicate on the "private_key" field.

func PrivateKeyEQ

func PrivateKeyEQ(v string) predicate.Account

PrivateKeyEQ applies the EQ predicate on the "private_key" field.

func PrivateKeyEqualFold

func PrivateKeyEqualFold(v string) predicate.Account

PrivateKeyEqualFold applies the EqualFold predicate on the "private_key" field.

func PrivateKeyGT

func PrivateKeyGT(v string) predicate.Account

PrivateKeyGT applies the GT predicate on the "private_key" field.

func PrivateKeyGTE

func PrivateKeyGTE(v string) predicate.Account

PrivateKeyGTE applies the GTE predicate on the "private_key" field.

func PrivateKeyHasPrefix

func PrivateKeyHasPrefix(v string) predicate.Account

PrivateKeyHasPrefix applies the HasPrefix predicate on the "private_key" field.

func PrivateKeyHasSuffix

func PrivateKeyHasSuffix(v string) predicate.Account

PrivateKeyHasSuffix applies the HasSuffix predicate on the "private_key" field.

func PrivateKeyIn

func PrivateKeyIn(vs ...string) predicate.Account

PrivateKeyIn applies the In predicate on the "private_key" field.

func PrivateKeyIsNil

func PrivateKeyIsNil() predicate.Account

PrivateKeyIsNil applies the IsNil predicate on the "private_key" field.

func PrivateKeyLT

func PrivateKeyLT(v string) predicate.Account

PrivateKeyLT applies the LT predicate on the "private_key" field.

func PrivateKeyLTE

func PrivateKeyLTE(v string) predicate.Account

PrivateKeyLTE applies the LTE predicate on the "private_key" field.

func PrivateKeyNEQ

func PrivateKeyNEQ(v string) predicate.Account

PrivateKeyNEQ applies the NEQ predicate on the "private_key" field.

func PrivateKeyNotIn

func PrivateKeyNotIn(vs ...string) predicate.Account

PrivateKeyNotIn applies the NotIn predicate on the "private_key" field.

func PrivateKeyNotNil

func PrivateKeyNotNil() predicate.Account

PrivateKeyNotNil applies the NotNil predicate on the "private_key" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func WalletID

func WalletID(v uuid.UUID) predicate.Account

WalletID applies equality check predicate on the "wallet_id" field. It's identical to WalletIDEQ.

func WalletIDEQ

func WalletIDEQ(v uuid.UUID) predicate.Account

WalletIDEQ applies the EQ predicate on the "wallet_id" field.

func WalletIDIn

func WalletIDIn(vs ...uuid.UUID) predicate.Account

WalletIDIn applies the In predicate on the "wallet_id" field.

func WalletIDNEQ

func WalletIDNEQ(v uuid.UUID) predicate.Account

WalletIDNEQ applies the NEQ predicate on the "wallet_id" field.

func WalletIDNotIn

func WalletIDNotIn(vs ...uuid.UUID) predicate.Account

WalletIDNotIn applies the NotIn predicate on the "wallet_id" field.

func Work

func Work(v bool) predicate.Account

Work applies equality check predicate on the "work" field. It's identical to WorkEQ.

func WorkEQ

func WorkEQ(v bool) predicate.Account

WorkEQ applies the EQ predicate on the "work" field.

func WorkNEQ

func WorkNEQ(v bool) predicate.Account

WorkNEQ applies the NEQ predicate on the "work" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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