Documentation ¶
Index ¶
- Constants
- Variables
- func AccountID(v uuid.UUID) predicate.Block
- func AccountIDEQ(v uuid.UUID) predicate.Block
- func AccountIDIn(vs ...uuid.UUID) predicate.Block
- func AccountIDIsNil() predicate.Block
- func AccountIDNEQ(v uuid.UUID) predicate.Block
- func AccountIDNotIn(vs ...uuid.UUID) predicate.Block
- func AccountIDNotNil() predicate.Block
- func And(predicates ...predicate.Block) predicate.Block
- func BlockHash(v string) predicate.Block
- func BlockHashContains(v string) predicate.Block
- func BlockHashContainsFold(v string) predicate.Block
- func BlockHashEQ(v string) predicate.Block
- func BlockHashEqualFold(v string) predicate.Block
- func BlockHashGT(v string) predicate.Block
- func BlockHashGTE(v string) predicate.Block
- func BlockHashHasPrefix(v string) predicate.Block
- func BlockHashHasSuffix(v string) predicate.Block
- func BlockHashIn(vs ...string) predicate.Block
- func BlockHashLT(v string) predicate.Block
- func BlockHashLTE(v string) predicate.Block
- func BlockHashNEQ(v string) predicate.Block
- func BlockHashNotIn(vs ...string) predicate.Block
- func CreatedAt(v time.Time) predicate.Block
- func CreatedAtEQ(v time.Time) predicate.Block
- func CreatedAtGT(v time.Time) predicate.Block
- func CreatedAtGTE(v time.Time) predicate.Block
- func CreatedAtIn(vs ...time.Time) predicate.Block
- func CreatedAtLT(v time.Time) predicate.Block
- func CreatedAtLTE(v time.Time) predicate.Block
- func CreatedAtNEQ(v time.Time) predicate.Block
- func CreatedAtNotIn(vs ...time.Time) predicate.Block
- func HasAccount() predicate.Block
- func HasAccountWith(preds ...predicate.Account) predicate.Block
- func ID(id uuid.UUID) predicate.Block
- func IDEQ(id uuid.UUID) predicate.Block
- func IDGT(id uuid.UUID) predicate.Block
- func IDGTE(id uuid.UUID) predicate.Block
- func IDIn(ids ...uuid.UUID) predicate.Block
- func IDLT(id uuid.UUID) predicate.Block
- func IDLTE(id uuid.UUID) predicate.Block
- func IDNEQ(id uuid.UUID) predicate.Block
- func IDNotIn(ids ...uuid.UUID) predicate.Block
- func Not(p predicate.Block) predicate.Block
- func Or(predicates ...predicate.Block) predicate.Block
- func SendID(v string) predicate.Block
- func SendIDContains(v string) predicate.Block
- func SendIDContainsFold(v string) predicate.Block
- func SendIDEQ(v string) predicate.Block
- func SendIDEqualFold(v string) predicate.Block
- func SendIDGT(v string) predicate.Block
- func SendIDGTE(v string) predicate.Block
- func SendIDHasPrefix(v string) predicate.Block
- func SendIDHasSuffix(v string) predicate.Block
- func SendIDIn(vs ...string) predicate.Block
- func SendIDIsNil() predicate.Block
- func SendIDLT(v string) predicate.Block
- func SendIDLTE(v string) predicate.Block
- func SendIDNEQ(v string) predicate.Block
- func SendIDNotIn(vs ...string) predicate.Block
- func SendIDNotNil() predicate.Block
- func Subtype(v string) predicate.Block
- func SubtypeContains(v string) predicate.Block
- func SubtypeContainsFold(v string) predicate.Block
- func SubtypeEQ(v string) predicate.Block
- func SubtypeEqualFold(v string) predicate.Block
- func SubtypeGT(v string) predicate.Block
- func SubtypeGTE(v string) predicate.Block
- func SubtypeHasPrefix(v string) predicate.Block
- func SubtypeHasSuffix(v string) predicate.Block
- func SubtypeIn(vs ...string) predicate.Block
- func SubtypeLT(v string) predicate.Block
- func SubtypeLTE(v string) predicate.Block
- func SubtypeNEQ(v string) predicate.Block
- func SubtypeNotIn(vs ...string) predicate.Block
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldAccountID, FieldBlockHash, FieldBlock, FieldSendID, FieldSubtype, FieldCreatedAt, }
Columns holds all SQL columns for block fields.
Functions ¶
func AccountID ¶
AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.
func AccountIDEQ ¶
AccountIDEQ applies the EQ predicate on the "account_id" field.
func AccountIDIn ¶
AccountIDIn applies the In predicate on the "account_id" field.
func AccountIDIsNil ¶
AccountIDIsNil applies the IsNil predicate on the "account_id" field.
func AccountIDNEQ ¶
AccountIDNEQ applies the NEQ predicate on the "account_id" field.
func AccountIDNotIn ¶
AccountIDNotIn applies the NotIn predicate on the "account_id" field.
func AccountIDNotNil ¶
AccountIDNotNil applies the NotNil predicate on the "account_id" field.
func BlockHash ¶
BlockHash applies equality check predicate on the "block_hash" field. It's identical to BlockHashEQ.
func BlockHashContains ¶
BlockHashContains applies the Contains predicate on the "block_hash" field.
func BlockHashContainsFold ¶
BlockHashContainsFold applies the ContainsFold predicate on the "block_hash" field.
func BlockHashEQ ¶
BlockHashEQ applies the EQ predicate on the "block_hash" field.
func BlockHashEqualFold ¶
BlockHashEqualFold applies the EqualFold predicate on the "block_hash" field.
func BlockHashGT ¶
BlockHashGT applies the GT predicate on the "block_hash" field.
func BlockHashGTE ¶
BlockHashGTE applies the GTE predicate on the "block_hash" field.
func BlockHashHasPrefix ¶
BlockHashHasPrefix applies the HasPrefix predicate on the "block_hash" field.
func BlockHashHasSuffix ¶
BlockHashHasSuffix applies the HasSuffix predicate on the "block_hash" field.
func BlockHashIn ¶
BlockHashIn applies the In predicate on the "block_hash" field.
func BlockHashLT ¶
BlockHashLT applies the LT predicate on the "block_hash" field.
func BlockHashLTE ¶
BlockHashLTE applies the LTE predicate on the "block_hash" field.
func BlockHashNEQ ¶
BlockHashNEQ applies the NEQ predicate on the "block_hash" field.
func BlockHashNotIn ¶
BlockHashNotIn applies the NotIn predicate on the "block_hash" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasAccount ¶
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func SendID ¶
SendID applies equality check predicate on the "send_id" field. It's identical to SendIDEQ.
func SendIDContains ¶
SendIDContains applies the Contains predicate on the "send_id" field.
func SendIDContainsFold ¶
SendIDContainsFold applies the ContainsFold predicate on the "send_id" field.
func SendIDEqualFold ¶
SendIDEqualFold applies the EqualFold predicate on the "send_id" field.
func SendIDHasPrefix ¶
SendIDHasPrefix applies the HasPrefix predicate on the "send_id" field.
func SendIDHasSuffix ¶
SendIDHasSuffix applies the HasSuffix predicate on the "send_id" field.
func SendIDIsNil ¶
SendIDIsNil applies the IsNil predicate on the "send_id" field.
func SendIDNotIn ¶
SendIDNotIn applies the NotIn predicate on the "send_id" field.
func SendIDNotNil ¶
SendIDNotNil applies the NotNil predicate on the "send_id" field.
func Subtype ¶
Subtype applies equality check predicate on the "subtype" field. It's identical to SubtypeEQ.
func SubtypeContains ¶
SubtypeContains applies the Contains predicate on the "subtype" field.
func SubtypeContainsFold ¶
SubtypeContainsFold applies the ContainsFold predicate on the "subtype" field.
func SubtypeEqualFold ¶
SubtypeEqualFold applies the EqualFold predicate on the "subtype" field.
func SubtypeGTE ¶
SubtypeGTE applies the GTE predicate on the "subtype" field.
func SubtypeHasPrefix ¶
SubtypeHasPrefix applies the HasPrefix predicate on the "subtype" field.
func SubtypeHasSuffix ¶
SubtypeHasSuffix applies the HasSuffix predicate on the "subtype" field.
func SubtypeLTE ¶
SubtypeLTE applies the LTE predicate on the "subtype" field.
func SubtypeNEQ ¶
SubtypeNEQ applies the NEQ predicate on the "subtype" field.
func SubtypeNotIn ¶
SubtypeNotIn applies the NotIn predicate on the "subtype" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.