Documentation ¶
Index ¶
- func Builder(ctx *database.Context) (database.Database, error)
- type Database
- func (db *Database) Close()
- func (db *Database) GetLastBlockHeight() (int64, error)
- 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) Prune(height int64) 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
Database defines a wrapper around a SQL database and implements functionality for data aggregation and exporting.
func (*Database) GetLastBlockHeight ¶ added in v3.4.0
GetLastBlockHeight returns the last block height stored inside the database
func (*Database) GetLastPruned ¶
GetLastPruned implements database.PruningDb
func (*Database) HasValidator ¶
HasValidator implements database.Database
func (*Database) SaveCommitSignatures ¶
SaveCommitSignatures implements database.Database
func (*Database) SaveMessage ¶
SaveMessage implements database.Database
func (*Database) SaveValidators ¶
SaveValidators implements database.Database
func (*Database) StoreLastPruned ¶
StoreLastPruned implements database.PruningDb
Click to show internal directories.
Click to hide internal directories.