starknetdeclaretx

package
v0.0.0-...-151f64f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for starknetdeclaretx fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
)

Functions

func And

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 ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL