wallet

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: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the wallet type in the database.
	Label = "wallet"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSeed holds the string denoting the seed field in the database.
	FieldSeed = "seed"
	// FieldRepresentative holds the string denoting the representative field in the database.
	FieldRepresentative = "representative"
	// FieldEncrypted holds the string denoting the encrypted field in the database.
	FieldEncrypted = "encrypted"
	// 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"
	// EdgeAccounts holds the string denoting the accounts edge name in mutations.
	EdgeAccounts = "accounts"
	// Table holds the table name of the wallet in the database.
	Table = "wallets"
	// AccountsTable is the table that holds the accounts relation/edge.
	AccountsTable = "accounts"
	// AccountsInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	AccountsInverseTable = "accounts"
	// AccountsColumn is the table column denoting the accounts relation/edge.
	AccountsColumn = "wallet_id"
)

Variables

View Source
var (
	// SeedValidator is a validator for the "seed" field. It is called by the builders before save.
	SeedValidator func(string) error
	// RepresentativeValidator is a validator for the "representative" field. It is called by the builders before save.
	RepresentativeValidator func(string) error
	// DefaultEncrypted holds the default value on creation for the "encrypted" field.
	DefaultEncrypted bool
	// 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 wallet fields.

Functions

func And

func And(predicates ...predicate.Wallet) predicate.Wallet

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Wallet

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Wallet

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Wallet

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Wallet

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Wallet

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Wallet

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Wallet

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

func CreatedAtNotIn

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

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

func Encrypted

func Encrypted(v bool) predicate.Wallet

Encrypted applies equality check predicate on the "encrypted" field. It's identical to EncryptedEQ.

func EncryptedEQ

func EncryptedEQ(v bool) predicate.Wallet

EncryptedEQ applies the EQ predicate on the "encrypted" field.

func EncryptedNEQ

func EncryptedNEQ(v bool) predicate.Wallet

EncryptedNEQ applies the NEQ predicate on the "encrypted" field.

func HasAccounts

func HasAccounts() predicate.Wallet

HasAccounts applies the HasEdge predicate on the "accounts" edge.

func HasAccountsWith

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

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

func ID

func ID(id uuid.UUID) predicate.Wallet

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Wallet

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Wallet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Wallet

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Wallet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Wallet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Wallet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Representative

func Representative(v string) predicate.Wallet

Representative applies equality check predicate on the "representative" field. It's identical to RepresentativeEQ.

func RepresentativeContains

func RepresentativeContains(v string) predicate.Wallet

RepresentativeContains applies the Contains predicate on the "representative" field.

func RepresentativeContainsFold

func RepresentativeContainsFold(v string) predicate.Wallet

RepresentativeContainsFold applies the ContainsFold predicate on the "representative" field.

func RepresentativeEQ

func RepresentativeEQ(v string) predicate.Wallet

RepresentativeEQ applies the EQ predicate on the "representative" field.

func RepresentativeEqualFold

func RepresentativeEqualFold(v string) predicate.Wallet

RepresentativeEqualFold applies the EqualFold predicate on the "representative" field.

func RepresentativeGT

func RepresentativeGT(v string) predicate.Wallet

RepresentativeGT applies the GT predicate on the "representative" field.

func RepresentativeGTE

func RepresentativeGTE(v string) predicate.Wallet

RepresentativeGTE applies the GTE predicate on the "representative" field.

func RepresentativeHasPrefix

func RepresentativeHasPrefix(v string) predicate.Wallet

RepresentativeHasPrefix applies the HasPrefix predicate on the "representative" field.

func RepresentativeHasSuffix

func RepresentativeHasSuffix(v string) predicate.Wallet

RepresentativeHasSuffix applies the HasSuffix predicate on the "representative" field.

func RepresentativeIn

func RepresentativeIn(vs ...string) predicate.Wallet

RepresentativeIn applies the In predicate on the "representative" field.

func RepresentativeIsNil

func RepresentativeIsNil() predicate.Wallet

RepresentativeIsNil applies the IsNil predicate on the "representative" field.

func RepresentativeLT

func RepresentativeLT(v string) predicate.Wallet

RepresentativeLT applies the LT predicate on the "representative" field.

func RepresentativeLTE

func RepresentativeLTE(v string) predicate.Wallet

RepresentativeLTE applies the LTE predicate on the "representative" field.

func RepresentativeNEQ

func RepresentativeNEQ(v string) predicate.Wallet

RepresentativeNEQ applies the NEQ predicate on the "representative" field.

func RepresentativeNotIn

func RepresentativeNotIn(vs ...string) predicate.Wallet

RepresentativeNotIn applies the NotIn predicate on the "representative" field.

func RepresentativeNotNil

func RepresentativeNotNil() predicate.Wallet

RepresentativeNotNil applies the NotNil predicate on the "representative" field.

func Seed

func Seed(v string) predicate.Wallet

Seed applies equality check predicate on the "seed" field. It's identical to SeedEQ.

func SeedContains

func SeedContains(v string) predicate.Wallet

SeedContains applies the Contains predicate on the "seed" field.

func SeedContainsFold

func SeedContainsFold(v string) predicate.Wallet

SeedContainsFold applies the ContainsFold predicate on the "seed" field.

func SeedEQ

func SeedEQ(v string) predicate.Wallet

SeedEQ applies the EQ predicate on the "seed" field.

func SeedEqualFold

func SeedEqualFold(v string) predicate.Wallet

SeedEqualFold applies the EqualFold predicate on the "seed" field.

func SeedGT

func SeedGT(v string) predicate.Wallet

SeedGT applies the GT predicate on the "seed" field.

func SeedGTE

func SeedGTE(v string) predicate.Wallet

SeedGTE applies the GTE predicate on the "seed" field.

func SeedHasPrefix

func SeedHasPrefix(v string) predicate.Wallet

SeedHasPrefix applies the HasPrefix predicate on the "seed" field.

func SeedHasSuffix

func SeedHasSuffix(v string) predicate.Wallet

SeedHasSuffix applies the HasSuffix predicate on the "seed" field.

func SeedIn

func SeedIn(vs ...string) predicate.Wallet

SeedIn applies the In predicate on the "seed" field.

func SeedLT

func SeedLT(v string) predicate.Wallet

SeedLT applies the LT predicate on the "seed" field.

func SeedLTE

func SeedLTE(v string) predicate.Wallet

SeedLTE applies the LTE predicate on the "seed" field.

func SeedNEQ

func SeedNEQ(v string) predicate.Wallet

SeedNEQ applies the NEQ predicate on the "seed" field.

func SeedNotIn

func SeedNotIn(vs ...string) predicate.Wallet

SeedNotIn applies the NotIn predicate on the "seed" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Work

func Work(v bool) predicate.Wallet

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

func WorkEQ

func WorkEQ(v bool) predicate.Wallet

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

func WorkNEQ

func WorkNEQ(v bool) predicate.Wallet

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