block

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the block type in the database.
	Label = "block"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAccountID holds the string denoting the account_id field in the database.
	FieldAccountID = "account_id"
	// FieldBlockHash holds the string denoting the block_hash field in the database.
	FieldBlockHash = "block_hash"
	// FieldBlock holds the string denoting the block field in the database.
	FieldBlock = "block"
	// FieldSendID holds the string denoting the send_id field in the database.
	FieldSendID = "send_id"
	// FieldSubtype holds the string denoting the subtype field in the database.
	FieldSubtype = "subtype"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// Table holds the table name of the block in the database.
	Table = "blocks"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "blocks"
	// AccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	AccountInverseTable = "accounts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "account_id"
)

Variables

View Source
var (
	// BlockHashValidator is a validator for the "block_hash" field. It is called by the builders before save.
	BlockHashValidator func(string) error
	// SendIDValidator is a validator for the "send_id" field. It is called by the builders before save.
	SendIDValidator func(string) error
	// SubtypeValidator is a validator for the "subtype" field. It is called by the builders before save.
	SubtypeValidator func(string) error
	// 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 block fields.

Functions

func AccountID

func AccountID(v uuid.UUID) predicate.Block

AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.

func AccountIDEQ

func AccountIDEQ(v uuid.UUID) predicate.Block

AccountIDEQ applies the EQ predicate on the "account_id" field.

func AccountIDIn

func AccountIDIn(vs ...uuid.UUID) predicate.Block

AccountIDIn applies the In predicate on the "account_id" field.

func AccountIDIsNil

func AccountIDIsNil() predicate.Block

AccountIDIsNil applies the IsNil predicate on the "account_id" field.

func AccountIDNEQ

func AccountIDNEQ(v uuid.UUID) predicate.Block

AccountIDNEQ applies the NEQ predicate on the "account_id" field.

func AccountIDNotIn

func AccountIDNotIn(vs ...uuid.UUID) predicate.Block

AccountIDNotIn applies the NotIn predicate on the "account_id" field.

func AccountIDNotNil

func AccountIDNotNil() predicate.Block

AccountIDNotNil applies the NotNil predicate on the "account_id" field.

func And

func And(predicates ...predicate.Block) predicate.Block

And groups predicates with the AND operator between them.

func BlockHash

func BlockHash(v string) predicate.Block

BlockHash applies equality check predicate on the "block_hash" field. It's identical to BlockHashEQ.

func BlockHashContains

func BlockHashContains(v string) predicate.Block

BlockHashContains applies the Contains predicate on the "block_hash" field.

func BlockHashContainsFold

func BlockHashContainsFold(v string) predicate.Block

BlockHashContainsFold applies the ContainsFold predicate on the "block_hash" field.

func BlockHashEQ

func BlockHashEQ(v string) predicate.Block

BlockHashEQ applies the EQ predicate on the "block_hash" field.

func BlockHashEqualFold

func BlockHashEqualFold(v string) predicate.Block

BlockHashEqualFold applies the EqualFold predicate on the "block_hash" field.

func BlockHashGT

func BlockHashGT(v string) predicate.Block

BlockHashGT applies the GT predicate on the "block_hash" field.

func BlockHashGTE

func BlockHashGTE(v string) predicate.Block

BlockHashGTE applies the GTE predicate on the "block_hash" field.

func BlockHashHasPrefix

func BlockHashHasPrefix(v string) predicate.Block

BlockHashHasPrefix applies the HasPrefix predicate on the "block_hash" field.

func BlockHashHasSuffix

func BlockHashHasSuffix(v string) predicate.Block

BlockHashHasSuffix applies the HasSuffix predicate on the "block_hash" field.

func BlockHashIn

func BlockHashIn(vs ...string) predicate.Block

BlockHashIn applies the In predicate on the "block_hash" field.

func BlockHashLT

func BlockHashLT(v string) predicate.Block

BlockHashLT applies the LT predicate on the "block_hash" field.

func BlockHashLTE

func BlockHashLTE(v string) predicate.Block

BlockHashLTE applies the LTE predicate on the "block_hash" field.

func BlockHashNEQ

func BlockHashNEQ(v string) predicate.Block

BlockHashNEQ applies the NEQ predicate on the "block_hash" field.

func BlockHashNotIn

func BlockHashNotIn(vs ...string) predicate.Block

BlockHashNotIn applies the NotIn predicate on the "block_hash" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Block

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Block

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Block

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Block

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Block

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Block

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Block

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

func CreatedAtNotIn

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

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

func HasAccount

func HasAccount() predicate.Block

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

func HasAccountWith

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

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

func ID

func ID(id uuid.UUID) predicate.Block

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Block

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Block

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Block

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Block

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Block

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Block

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func SendID

func SendID(v string) predicate.Block

SendID applies equality check predicate on the "send_id" field. It's identical to SendIDEQ.

func SendIDContains

func SendIDContains(v string) predicate.Block

SendIDContains applies the Contains predicate on the "send_id" field.

func SendIDContainsFold

func SendIDContainsFold(v string) predicate.Block

SendIDContainsFold applies the ContainsFold predicate on the "send_id" field.

func SendIDEQ

func SendIDEQ(v string) predicate.Block

SendIDEQ applies the EQ predicate on the "send_id" field.

func SendIDEqualFold

func SendIDEqualFold(v string) predicate.Block

SendIDEqualFold applies the EqualFold predicate on the "send_id" field.

func SendIDGT

func SendIDGT(v string) predicate.Block

SendIDGT applies the GT predicate on the "send_id" field.

func SendIDGTE

func SendIDGTE(v string) predicate.Block

SendIDGTE applies the GTE predicate on the "send_id" field.

func SendIDHasPrefix

func SendIDHasPrefix(v string) predicate.Block

SendIDHasPrefix applies the HasPrefix predicate on the "send_id" field.

func SendIDHasSuffix

func SendIDHasSuffix(v string) predicate.Block

SendIDHasSuffix applies the HasSuffix predicate on the "send_id" field.

func SendIDIn

func SendIDIn(vs ...string) predicate.Block

SendIDIn applies the In predicate on the "send_id" field.

func SendIDIsNil

func SendIDIsNil() predicate.Block

SendIDIsNil applies the IsNil predicate on the "send_id" field.

func SendIDLT

func SendIDLT(v string) predicate.Block

SendIDLT applies the LT predicate on the "send_id" field.

func SendIDLTE

func SendIDLTE(v string) predicate.Block

SendIDLTE applies the LTE predicate on the "send_id" field.

func SendIDNEQ

func SendIDNEQ(v string) predicate.Block

SendIDNEQ applies the NEQ predicate on the "send_id" field.

func SendIDNotIn

func SendIDNotIn(vs ...string) predicate.Block

SendIDNotIn applies the NotIn predicate on the "send_id" field.

func SendIDNotNil

func SendIDNotNil() predicate.Block

SendIDNotNil applies the NotNil predicate on the "send_id" field.

func Subtype

func Subtype(v string) predicate.Block

Subtype applies equality check predicate on the "subtype" field. It's identical to SubtypeEQ.

func SubtypeContains

func SubtypeContains(v string) predicate.Block

SubtypeContains applies the Contains predicate on the "subtype" field.

func SubtypeContainsFold

func SubtypeContainsFold(v string) predicate.Block

SubtypeContainsFold applies the ContainsFold predicate on the "subtype" field.

func SubtypeEQ

func SubtypeEQ(v string) predicate.Block

SubtypeEQ applies the EQ predicate on the "subtype" field.

func SubtypeEqualFold

func SubtypeEqualFold(v string) predicate.Block

SubtypeEqualFold applies the EqualFold predicate on the "subtype" field.

func SubtypeGT

func SubtypeGT(v string) predicate.Block

SubtypeGT applies the GT predicate on the "subtype" field.

func SubtypeGTE

func SubtypeGTE(v string) predicate.Block

SubtypeGTE applies the GTE predicate on the "subtype" field.

func SubtypeHasPrefix

func SubtypeHasPrefix(v string) predicate.Block

SubtypeHasPrefix applies the HasPrefix predicate on the "subtype" field.

func SubtypeHasSuffix

func SubtypeHasSuffix(v string) predicate.Block

SubtypeHasSuffix applies the HasSuffix predicate on the "subtype" field.

func SubtypeIn

func SubtypeIn(vs ...string) predicate.Block

SubtypeIn applies the In predicate on the "subtype" field.

func SubtypeLT

func SubtypeLT(v string) predicate.Block

SubtypeLT applies the LT predicate on the "subtype" field.

func SubtypeLTE

func SubtypeLTE(v string) predicate.Block

SubtypeLTE applies the LTE predicate on the "subtype" field.

func SubtypeNEQ

func SubtypeNEQ(v string) predicate.Block

SubtypeNEQ applies the NEQ predicate on the "subtype" field.

func SubtypeNotIn

func SubtypeNotIn(vs ...string) predicate.Block

SubtypeNotIn applies the NotIn predicate on the "subtype" field.

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