Versions in this module Expand all Collapse all v2 v2.0.0 Feb 23, 2022 Changes in this version + func Builder(ctx *database.Context) (database.Database, error) + type Database struct + EncodingConfig *params.EncodingConfig + Logger logging.Logger + Sql *sql.DB + func (db *Database) Close() + func (db *Database) GetLastPruned() (int64, error) + func (db *Database) HasBlock(height int64) (bool, error) + func (db *Database) HasValidator(addr string) (bool, error) + func (db *Database) LastBlockHeight() (int64, error) + func (db *Database) Prune(height int64) error + func (db *Database) RunTx(fn func(tx *sql.Tx) error) error + func (db *Database) SaveBlock(block *types.Block) error + func (db *Database) SaveCommitSignatures(signatures []*types.CommitSig) error + func (db *Database) SaveMessage(msg *types.Message) error + func (db *Database) SaveTx(tx *types.Tx) error + func (db *Database) SaveValidators(validators []*types.Validator) error + func (db *Database) StoreLastPruned(height int64) error v2.0.0-stargate Feb 23, 2022 Other modules containing this package github.com/forbole/juno/v3 github.com/forbole/juno/v4 github.com/forbole/juno/v5 github.com/forbole/juno/v6