Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.StarknetDeclareTx) predicate.StarknetDeclareTx
- func BlockNumber(v int) predicate.StarknetDeclareTx
- func BlockNumberEQ(v int) predicate.StarknetDeclareTx
- func BlockNumberGT(v int) predicate.StarknetDeclareTx
- func BlockNumberGTE(v int) predicate.StarknetDeclareTx
- func BlockNumberIn(vs ...int) predicate.StarknetDeclareTx
- func BlockNumberLT(v int) predicate.StarknetDeclareTx
- func BlockNumberLTE(v int) predicate.StarknetDeclareTx
- func BlockNumberNEQ(v int) predicate.StarknetDeclareTx
- func BlockNumberNotIn(vs ...int) predicate.StarknetDeclareTx
- func ClassHash(v string) predicate.StarknetDeclareTx
- func ClassHashContains(v string) predicate.StarknetDeclareTx
- func ClassHashContainsFold(v string) predicate.StarknetDeclareTx
- func ClassHashEQ(v string) predicate.StarknetDeclareTx
- func ClassHashEqualFold(v string) predicate.StarknetDeclareTx
- func ClassHashGT(v string) predicate.StarknetDeclareTx
- func ClassHashGTE(v string) predicate.StarknetDeclareTx
- func ClassHashHasPrefix(v string) predicate.StarknetDeclareTx
- func ClassHashHasSuffix(v string) predicate.StarknetDeclareTx
- func ClassHashIn(vs ...string) predicate.StarknetDeclareTx
- func ClassHashLT(v string) predicate.StarknetDeclareTx
- func ClassHashLTE(v string) predicate.StarknetDeclareTx
- func ClassHashNEQ(v string) predicate.StarknetDeclareTx
- func ClassHashNotIn(vs ...string) predicate.StarknetDeclareTx
- func CreatedAt(v time.Time) predicate.StarknetDeclareTx
- func CreatedAtEQ(v time.Time) predicate.StarknetDeclareTx
- func CreatedAtGT(v time.Time) predicate.StarknetDeclareTx
- func CreatedAtGTE(v time.Time) predicate.StarknetDeclareTx
- func CreatedAtIn(vs ...time.Time) predicate.StarknetDeclareTx
- func CreatedAtLT(v time.Time) predicate.StarknetDeclareTx
- func CreatedAtLTE(v time.Time) predicate.StarknetDeclareTx
- func CreatedAtNEQ(v time.Time) predicate.StarknetDeclareTx
- func CreatedAtNotIn(vs ...time.Time) predicate.StarknetDeclareTx
- func DeclareTxHash(v string) predicate.StarknetDeclareTx
- func DeclareTxHashContains(v string) predicate.StarknetDeclareTx
- func DeclareTxHashContainsFold(v string) predicate.StarknetDeclareTx
- func DeclareTxHashEQ(v string) predicate.StarknetDeclareTx
- func DeclareTxHashEqualFold(v string) predicate.StarknetDeclareTx
- func DeclareTxHashGT(v string) predicate.StarknetDeclareTx
- func DeclareTxHashGTE(v string) predicate.StarknetDeclareTx
- func DeclareTxHashHasPrefix(v string) predicate.StarknetDeclareTx
- func DeclareTxHashHasSuffix(v string) predicate.StarknetDeclareTx
- func DeclareTxHashIn(vs ...string) predicate.StarknetDeclareTx
- func DeclareTxHashLT(v string) predicate.StarknetDeclareTx
- func DeclareTxHashLTE(v string) predicate.StarknetDeclareTx
- func DeclareTxHashNEQ(v string) predicate.StarknetDeclareTx
- func DeclareTxHashNotIn(vs ...string) predicate.StarknetDeclareTx
- func ID(id int) predicate.StarknetDeclareTx
- func IDEQ(id int) predicate.StarknetDeclareTx
- func IDGT(id int) predicate.StarknetDeclareTx
- func IDGTE(id int) predicate.StarknetDeclareTx
- func IDIn(ids ...int) predicate.StarknetDeclareTx
- func IDLT(id int) predicate.StarknetDeclareTx
- func IDLTE(id int) predicate.StarknetDeclareTx
- func IDNEQ(id int) predicate.StarknetDeclareTx
- func IDNotIn(ids ...int) predicate.StarknetDeclareTx
- func Not(p predicate.StarknetDeclareTx) predicate.StarknetDeclareTx
- func Or(predicates ...predicate.StarknetDeclareTx) predicate.StarknetDeclareTx
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the starknetdeclaretx type in the database. Label = "starknet_declare_tx" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldBlockNumber holds the string denoting the block_number field in the database. FieldBlockNumber = "block_number" // FieldDeclareTxHash holds the string denoting the declare_tx_hash field in the database. FieldDeclareTxHash = "declare_tx_hash" // FieldClassHash holds the string denoting the class_hash field in the database. FieldClassHash = "class_hash" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // Table holds the table name of the starknetdeclaretx in the database. Table = "starknet_declare_txes" )
Variables ¶
var Columns = []string{ FieldID, FieldBlockNumber, FieldDeclareTxHash, FieldClassHash, FieldCreatedAt, }
Columns holds all SQL columns for starknetdeclaretx fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time )
Functions ¶
func And ¶
func And(predicates ...predicate.StarknetDeclareTx) predicate.StarknetDeclareTx
And groups predicates with the AND operator between them.
func BlockNumber ¶
func BlockNumber(v int) predicate.StarknetDeclareTx
BlockNumber applies equality check predicate on the "block_number" field. It's identical to BlockNumberEQ.
func BlockNumberEQ ¶
func BlockNumberEQ(v int) predicate.StarknetDeclareTx
BlockNumberEQ applies the EQ predicate on the "block_number" field.
func BlockNumberGT ¶
func BlockNumberGT(v int) predicate.StarknetDeclareTx
BlockNumberGT applies the GT predicate on the "block_number" field.
func BlockNumberGTE ¶
func BlockNumberGTE(v int) predicate.StarknetDeclareTx
BlockNumberGTE applies the GTE predicate on the "block_number" field.
func BlockNumberIn ¶
func BlockNumberIn(vs ...int) predicate.StarknetDeclareTx
BlockNumberIn applies the In predicate on the "block_number" field.
func BlockNumberLT ¶
func BlockNumberLT(v int) predicate.StarknetDeclareTx
BlockNumberLT applies the LT predicate on the "block_number" field.
func BlockNumberLTE ¶
func BlockNumberLTE(v int) predicate.StarknetDeclareTx
BlockNumberLTE applies the LTE predicate on the "block_number" field.
func BlockNumberNEQ ¶
func BlockNumberNEQ(v int) predicate.StarknetDeclareTx
BlockNumberNEQ applies the NEQ predicate on the "block_number" field.
func BlockNumberNotIn ¶
func BlockNumberNotIn(vs ...int) predicate.StarknetDeclareTx
BlockNumberNotIn applies the NotIn predicate on the "block_number" field.
func ClassHash ¶
func ClassHash(v string) predicate.StarknetDeclareTx
ClassHash applies equality check predicate on the "class_hash" field. It's identical to ClassHashEQ.
func ClassHashContains ¶
func ClassHashContains(v string) predicate.StarknetDeclareTx
ClassHashContains applies the Contains predicate on the "class_hash" field.
func ClassHashContainsFold ¶
func ClassHashContainsFold(v string) predicate.StarknetDeclareTx
ClassHashContainsFold applies the ContainsFold predicate on the "class_hash" field.
func ClassHashEQ ¶
func ClassHashEQ(v string) predicate.StarknetDeclareTx
ClassHashEQ applies the EQ predicate on the "class_hash" field.
func ClassHashEqualFold ¶
func ClassHashEqualFold(v string) predicate.StarknetDeclareTx
ClassHashEqualFold applies the EqualFold predicate on the "class_hash" field.
func ClassHashGT ¶
func ClassHashGT(v string) predicate.StarknetDeclareTx
ClassHashGT applies the GT predicate on the "class_hash" field.
func ClassHashGTE ¶
func ClassHashGTE(v string) predicate.StarknetDeclareTx
ClassHashGTE applies the GTE predicate on the "class_hash" field.
func ClassHashHasPrefix ¶
func ClassHashHasPrefix(v string) predicate.StarknetDeclareTx
ClassHashHasPrefix applies the HasPrefix predicate on the "class_hash" field.
func ClassHashHasSuffix ¶
func ClassHashHasSuffix(v string) predicate.StarknetDeclareTx
ClassHashHasSuffix applies the HasSuffix predicate on the "class_hash" field.
func ClassHashIn ¶
func ClassHashIn(vs ...string) predicate.StarknetDeclareTx
ClassHashIn applies the In predicate on the "class_hash" field.
func ClassHashLT ¶
func ClassHashLT(v string) predicate.StarknetDeclareTx
ClassHashLT applies the LT predicate on the "class_hash" field.
func ClassHashLTE ¶
func ClassHashLTE(v string) predicate.StarknetDeclareTx
ClassHashLTE applies the LTE predicate on the "class_hash" field.
func ClassHashNEQ ¶
func ClassHashNEQ(v string) predicate.StarknetDeclareTx
ClassHashNEQ applies the NEQ predicate on the "class_hash" field.
func ClassHashNotIn ¶
func ClassHashNotIn(vs ...string) predicate.StarknetDeclareTx
ClassHashNotIn applies the NotIn predicate on the "class_hash" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.StarknetDeclareTx
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.StarknetDeclareTx
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.StarknetDeclareTx
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.StarknetDeclareTx
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.StarknetDeclareTx
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.StarknetDeclareTx
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.StarknetDeclareTx
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.StarknetDeclareTx
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.StarknetDeclareTx
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeclareTxHash ¶
func DeclareTxHash(v string) predicate.StarknetDeclareTx
DeclareTxHash applies equality check predicate on the "declare_tx_hash" field. It's identical to DeclareTxHashEQ.
func DeclareTxHashContains ¶
func DeclareTxHashContains(v string) predicate.StarknetDeclareTx
DeclareTxHashContains applies the Contains predicate on the "declare_tx_hash" field.
func DeclareTxHashContainsFold ¶
func DeclareTxHashContainsFold(v string) predicate.StarknetDeclareTx
DeclareTxHashContainsFold applies the ContainsFold predicate on the "declare_tx_hash" field.
func DeclareTxHashEQ ¶
func DeclareTxHashEQ(v string) predicate.StarknetDeclareTx
DeclareTxHashEQ applies the EQ predicate on the "declare_tx_hash" field.
func DeclareTxHashEqualFold ¶
func DeclareTxHashEqualFold(v string) predicate.StarknetDeclareTx
DeclareTxHashEqualFold applies the EqualFold predicate on the "declare_tx_hash" field.
func DeclareTxHashGT ¶
func DeclareTxHashGT(v string) predicate.StarknetDeclareTx
DeclareTxHashGT applies the GT predicate on the "declare_tx_hash" field.
func DeclareTxHashGTE ¶
func DeclareTxHashGTE(v string) predicate.StarknetDeclareTx
DeclareTxHashGTE applies the GTE predicate on the "declare_tx_hash" field.
func DeclareTxHashHasPrefix ¶
func DeclareTxHashHasPrefix(v string) predicate.StarknetDeclareTx
DeclareTxHashHasPrefix applies the HasPrefix predicate on the "declare_tx_hash" field.
func DeclareTxHashHasSuffix ¶
func DeclareTxHashHasSuffix(v string) predicate.StarknetDeclareTx
DeclareTxHashHasSuffix applies the HasSuffix predicate on the "declare_tx_hash" field.
func DeclareTxHashIn ¶
func DeclareTxHashIn(vs ...string) predicate.StarknetDeclareTx
DeclareTxHashIn applies the In predicate on the "declare_tx_hash" field.
func DeclareTxHashLT ¶
func DeclareTxHashLT(v string) predicate.StarknetDeclareTx
DeclareTxHashLT applies the LT predicate on the "declare_tx_hash" field.
func DeclareTxHashLTE ¶
func DeclareTxHashLTE(v string) predicate.StarknetDeclareTx
DeclareTxHashLTE applies the LTE predicate on the "declare_tx_hash" field.
func DeclareTxHashNEQ ¶
func DeclareTxHashNEQ(v string) predicate.StarknetDeclareTx
DeclareTxHashNEQ applies the NEQ predicate on the "declare_tx_hash" field.
func DeclareTxHashNotIn ¶
func DeclareTxHashNotIn(vs ...string) predicate.StarknetDeclareTx
DeclareTxHashNotIn applies the NotIn predicate on the "declare_tx_hash" field.
func IDEQ ¶
func IDEQ(id int) predicate.StarknetDeclareTx
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.StarknetDeclareTx
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.StarknetDeclareTx
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.StarknetDeclareTx
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.StarknetDeclareTx
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.StarknetDeclareTx
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.StarknetDeclareTx
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.StarknetDeclareTx
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.StarknetDeclareTx) predicate.StarknetDeclareTx
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.StarknetDeclareTx) predicate.StarknetDeclareTx
Or groups predicates with the OR operator between them.
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 StarknetDeclareTx queries.
func ByBlockNumber ¶
func ByBlockNumber(opts ...sql.OrderTermOption) OrderOption
ByBlockNumber orders the results by the block_number field.
func ByClassHash ¶
func ByClassHash(opts ...sql.OrderTermOption) OrderOption
ByClassHash orders the results by the class_hash field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeclareTxHash ¶
func ByDeclareTxHash(opts ...sql.OrderTermOption) OrderOption
ByDeclareTxHash orders the results by the declare_tx_hash field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.