database

package
v0.0.0-...-5793453 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	CreateTable                     worker.CreateTableDB
	Blocks                          common.BlocksDB
	ContractEvents                  event.ContractEventsDB
	WithdrawProven                  event.WithdrawProvenDB
	WithdrawFinalized               event.WithdrawFinalizedDB
	StateRoots                      worker.StateRootDB
	L2ToL1                          worker.L2ToL1DB
	L1ToL2                          worker.L1ToL2DB
	MsgSentRelationD                relation.MsgSentRelationDB
	MsgHashRelationD                relation.MsgHashRelationDB
	RelayRelationD                  relation.RelayRelationDB
	RelayMessage                    event.RelayMessageDB
	StakeRecord                     relayer.StakingRecordDB
	BridgeRecord                    relayer.BridgeRecordDB
	BridgeMsgSent                   relayer.BridgeMsgSentDB
	BridgeMsgHash                   relayer.BridgeMsgHashDB
	BridgeClaim                     relayer.BridgeClaimDB
	BridgeFinalize                  relayer.BridgeFinalizeDB
	BridgeBlockListener             relayer.BridgeBlockListenerDB
	BridgeFundingPoolDB             relayer.BridgeFundingPoolUpdateDB
	AppChainLastBlock               appchain.AppChainLastBlockDB
	AppChainUnStake                 appchain.AppChainUnStakeDB
	AppChainStake                   appchain.AppChainStakeDB
	AppChainOperatorSharesIncreased appchain.AppChainOperatorSharesIncreasedDB
	AppChainIncreaseBatch           appchain.AppChainIncreaseBatchDB
	AppChainDappLinkBridge          appchain.AppChainDappLinkBridgeDB
	AppChainMigrateShares           appchain.AppChainMigrateSharesDB
	// contains filtered or unexported fields
}

func NewDB

func NewDB(ctx context.Context, dbConfig config.Database) (*DB, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) ExecuteSQLMigration

func (db *DB) ExecuteSQLMigration(migrationsFolder string) error

func (*DB) Transaction

func (db *DB) Transaction(fn func(db *DB) error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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