Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Block) predicate.Block
- func BlockHash(v []byte) predicate.Block
- func BlockHashEQ(v []byte) predicate.Block
- func BlockHashGT(v []byte) predicate.Block
- func BlockHashGTE(v []byte) predicate.Block
- func BlockHashIn(vs ...[]byte) predicate.Block
- func BlockHashLT(v []byte) predicate.Block
- func BlockHashLTE(v []byte) predicate.Block
- func BlockHashNEQ(v []byte) predicate.Block
- func BlockHashNotIn(vs ...[]byte) predicate.Block
- func BlockHeight(v uint64) predicate.Block
- func BlockHeightEQ(v uint64) predicate.Block
- func BlockHeightGT(v uint64) predicate.Block
- func BlockHeightGTE(v uint64) predicate.Block
- func BlockHeightIn(vs ...uint64) predicate.Block
- func BlockHeightLT(v uint64) predicate.Block
- func BlockHeightLTE(v uint64) predicate.Block
- func BlockHeightNEQ(v uint64) predicate.Block
- func BlockHeightNotIn(vs ...uint64) 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 HasMsgs() predicate.Block
- func HasMsgsWith(preds ...predicate.Msg) predicate.Block
- func HasReceipts() predicate.Block
- func HasReceiptsWith(preds ...predicate.Receipt) predicate.Block
- func ID(id int) predicate.Block
- func IDEQ(id int) predicate.Block
- func IDGT(id int) predicate.Block
- func IDGTE(id int) predicate.Block
- func IDIn(ids ...int) predicate.Block
- func IDLT(id int) predicate.Block
- func IDLTE(id int) predicate.Block
- func IDNEQ(id int) predicate.Block
- func IDNotIn(ids ...int) predicate.Block
- func Not(p predicate.Block) predicate.Block
- func Or(predicates ...predicate.Block) predicate.Block
- func SourceChainID(v uint64) predicate.Block
- func SourceChainIDEQ(v uint64) predicate.Block
- func SourceChainIDGT(v uint64) predicate.Block
- func SourceChainIDGTE(v uint64) predicate.Block
- func SourceChainIDIn(vs ...uint64) predicate.Block
- func SourceChainIDLT(v uint64) predicate.Block
- func SourceChainIDLTE(v uint64) predicate.Block
- func SourceChainIDNEQ(v uint64) predicate.Block
- func SourceChainIDNotIn(vs ...uint64) predicate.Block
- func Timestamp(v time.Time) predicate.Block
- func TimestampEQ(v time.Time) predicate.Block
- func TimestampGT(v time.Time) predicate.Block
- func TimestampGTE(v time.Time) predicate.Block
- func TimestampIn(vs ...time.Time) predicate.Block
- func TimestampLT(v time.Time) predicate.Block
- func TimestampLTE(v time.Time) predicate.Block
- func TimestampNEQ(v time.Time) predicate.Block
- func TimestampNotIn(vs ...time.Time) predicate.Block
- func UUID(v uuid.UUID) predicate.Block
- func UUIDEQ(v uuid.UUID) predicate.Block
- func UUIDGT(v uuid.UUID) predicate.Block
- func UUIDGTE(v uuid.UUID) predicate.Block
- func UUIDIn(vs ...uuid.UUID) predicate.Block
- func UUIDLT(v uuid.UUID) predicate.Block
- func UUIDLTE(v uuid.UUID) predicate.Block
- func UUIDNEQ(v uuid.UUID) predicate.Block
- func UUIDNotIn(vs ...uuid.UUID) predicate.Block
- func ValidColumn(column string) bool
- type OrderOption
- func ByBlockHeight(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMsgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMsgsCount(opts ...sql.OrderTermOption) OrderOption
- func ByReceipts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReceiptsCount(opts ...sql.OrderTermOption) OrderOption
- func BySourceChainID(opts ...sql.OrderTermOption) OrderOption
- func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
- func ByUUID(opts ...sql.OrderTermOption) OrderOption
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" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // FieldSourceChainID holds the string denoting the sourcechainid field in the database. FieldSourceChainID = "source_chain_id" // FieldBlockHeight holds the string denoting the blockheight field in the database. FieldBlockHeight = "block_height" // FieldBlockHash holds the string denoting the blockhash field in the database. FieldBlockHash = "block_hash" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // FieldCreatedAt holds the string denoting the createdat field in the database. FieldCreatedAt = "created_at" // EdgeMsgs holds the string denoting the msgs edge name in mutations. EdgeMsgs = "Msgs" // EdgeReceipts holds the string denoting the receipts edge name in mutations. EdgeReceipts = "Receipts" // Table holds the table name of the block in the database. Table = "blocks" // MsgsTable is the table that holds the Msgs relation/edge. MsgsTable = "msgs" // MsgsInverseTable is the table name for the Msg entity. // It exists in this package in order to avoid circular dependency with the "msg" package. MsgsInverseTable = "msgs" // MsgsColumn is the table column denoting the Msgs relation/edge. MsgsColumn = "block_msgs" // ReceiptsTable is the table that holds the Receipts relation/edge. ReceiptsTable = "receipts" // ReceiptsInverseTable is the table name for the Receipt entity. // It exists in this package in order to avoid circular dependency with the "receipt" package. ReceiptsInverseTable = "receipts" // ReceiptsColumn is the table column denoting the Receipts relation/edge. ReceiptsColumn = "block_receipts" )
Variables ¶
var ( // DefaultUUID holds the default value on creation for the "UUID" field. DefaultUUID func() uuid.UUID // BlockHashValidator is a validator for the "BlockHash" field. It is called by the builders before save. BlockHashValidator func([]byte) error // DefaultTimestamp holds the default value on creation for the "Timestamp" field. DefaultTimestamp time.Time // DefaultCreatedAt holds the default value on creation for the "CreatedAt" field. DefaultCreatedAt time.Time )
var Columns = []string{ FieldID, FieldUUID, FieldSourceChainID, FieldBlockHeight, FieldBlockHash, FieldTimestamp, FieldCreatedAt, }
Columns holds all SQL columns for block fields.
Functions ¶
func BlockHash ¶
BlockHash applies equality check predicate on the "BlockHash" field. It's identical to BlockHashEQ.
func BlockHashEQ ¶
BlockHashEQ applies the EQ predicate on the "BlockHash" field.
func BlockHashGT ¶
BlockHashGT applies the GT predicate on the "BlockHash" field.
func BlockHashGTE ¶
BlockHashGTE applies the GTE predicate on the "BlockHash" field.
func BlockHashIn ¶
BlockHashIn applies the In predicate on the "BlockHash" field.
func BlockHashLT ¶
BlockHashLT applies the LT predicate on the "BlockHash" field.
func BlockHashLTE ¶
BlockHashLTE applies the LTE predicate on the "BlockHash" field.
func BlockHashNEQ ¶
BlockHashNEQ applies the NEQ predicate on the "BlockHash" field.
func BlockHashNotIn ¶
BlockHashNotIn applies the NotIn predicate on the "BlockHash" field.
func BlockHeight ¶
BlockHeight applies equality check predicate on the "BlockHeight" field. It's identical to BlockHeightEQ.
func BlockHeightEQ ¶
BlockHeightEQ applies the EQ predicate on the "BlockHeight" field.
func BlockHeightGT ¶
BlockHeightGT applies the GT predicate on the "BlockHeight" field.
func BlockHeightGTE ¶
BlockHeightGTE applies the GTE predicate on the "BlockHeight" field.
func BlockHeightIn ¶
BlockHeightIn applies the In predicate on the "BlockHeight" field.
func BlockHeightLT ¶
BlockHeightLT applies the LT predicate on the "BlockHeight" field.
func BlockHeightLTE ¶
BlockHeightLTE applies the LTE predicate on the "BlockHeight" field.
func BlockHeightNEQ ¶
BlockHeightNEQ applies the NEQ predicate on the "BlockHeight" field.
func BlockHeightNotIn ¶
BlockHeightNotIn applies the NotIn predicate on the "BlockHeight" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "CreatedAt" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "CreatedAt" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "CreatedAt" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "CreatedAt" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "CreatedAt" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "CreatedAt" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "CreatedAt" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "CreatedAt" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "CreatedAt" field.
func HasMsgsWith ¶
HasMsgsWith applies the HasEdge predicate on the "Msgs" edge with a given conditions (other predicates).
func HasReceipts ¶
HasReceipts applies the HasEdge predicate on the "Receipts" edge.
func HasReceiptsWith ¶
HasReceiptsWith applies the HasEdge predicate on the "Receipts" edge with a given conditions (other predicates).
func SourceChainID ¶
SourceChainID applies equality check predicate on the "SourceChainID" field. It's identical to SourceChainIDEQ.
func SourceChainIDEQ ¶
SourceChainIDEQ applies the EQ predicate on the "SourceChainID" field.
func SourceChainIDGT ¶
SourceChainIDGT applies the GT predicate on the "SourceChainID" field.
func SourceChainIDGTE ¶
SourceChainIDGTE applies the GTE predicate on the "SourceChainID" field.
func SourceChainIDIn ¶
SourceChainIDIn applies the In predicate on the "SourceChainID" field.
func SourceChainIDLT ¶
SourceChainIDLT applies the LT predicate on the "SourceChainID" field.
func SourceChainIDLTE ¶
SourceChainIDLTE applies the LTE predicate on the "SourceChainID" field.
func SourceChainIDNEQ ¶
SourceChainIDNEQ applies the NEQ predicate on the "SourceChainID" field.
func SourceChainIDNotIn ¶
SourceChainIDNotIn applies the NotIn predicate on the "SourceChainID" field.
func Timestamp ¶
Timestamp applies equality check predicate on the "Timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "Timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "Timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "Timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "Timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "Timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "Timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "Timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "Timestamp" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Block queries.
func ByBlockHeight ¶
func ByBlockHeight(opts ...sql.OrderTermOption) OrderOption
ByBlockHeight orders the results by the BlockHeight field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the CreatedAt field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMsgs ¶
func ByMsgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMsgs orders the results by Msgs terms.
func ByMsgsCount ¶
func ByMsgsCount(opts ...sql.OrderTermOption) OrderOption
ByMsgsCount orders the results by Msgs count.
func ByReceipts ¶
func ByReceipts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByReceipts orders the results by Receipts terms.
func ByReceiptsCount ¶
func ByReceiptsCount(opts ...sql.OrderTermOption) OrderOption
ByReceiptsCount orders the results by Receipts count.
func BySourceChainID ¶
func BySourceChainID(opts ...sql.OrderTermOption) OrderOption
BySourceChainID orders the results by the SourceChainID field.
func ByTimestamp ¶
func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
ByTimestamp orders the results by the Timestamp field.
func ByUUID ¶
func ByUUID(opts ...sql.OrderTermOption) OrderOption
ByUUID orders the results by the UUID field.