Versions in this module Expand all Collapse all v6 v6.0.1 Jun 24, 2024 v6.0.0 Jun 20, 2024 Changes in this version + func Builder(ctx *database.Context) (database.Database, error) + type Database struct + Logger logging.Logger + SQL *sqlx.DB + func (db *Database) Close() + func (db *Database) CreatePartitionIfNotExists(table string, partitionID int64) error + func (db *Database) GetLastBlockHeight() (int64, error) + func (db *Database) GetLastPruned() (int64, error) + func (db *Database) GetMissingHeights(startHeight, endHeight int64) []int64 + func (db *Database) GetTotalBlocks() int64 + func (db *Database) HasBlock(height int64) (bool, error) + func (db *Database) HasValidator(addr string) (bool, error) + func (db *Database) Prune(height int64) error + func (db *Database) SaveBlock(block *types.Block) error + func (db *Database) SaveCommitSignatures(signatures []*types.CommitSig) error + func (db *Database) SaveMessage(height int64, txHash string, msg types.Message, addresses []string) error + func (db *Database) SaveTx(tx *types.Transaction) error + func (db *Database) SaveValidators(validators []*types.Validator) error + func (db *Database) StoreLastPruned(height int64) error Other modules containing this package github.com/forbole/juno/v2 github.com/forbole/juno/v3 github.com/forbole/juno/v4 github.com/forbole/juno/v5