database

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 20 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 {
	Blocks            common.BlocksDB
	ContractEvent     event.ContractEventDB
	ActivityInfoDB    activity.ActivityInfoDB
	ActivityInfoExtDB activity.ActivityInfoExtDB
	TokenNftDB        token_nft.TokenNftDB
	DropInfoDB        drop.DropInfoDB
	BlockListener     block_listener.BlockListenerDB
	AccountNftInfoDB  account_nft_info.AccountNftInfoDB
	// contains filtered or unexported fields
}

func NewDB

func NewDB(dbConfig *config.Config) (*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