Versions in this module Expand all Collapse all v0 v0.0.6 Jan 5, 2022 Changes in this version + func Builder(cfg *config.PostgreSQLConfig, codec *codec.Codec) (db.Database, error) + type Database struct + Codec *codec.Codec + Sql *sql.DB + 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) SaveBlock(block *tmctypes.ResultBlock, totalGas, preCommits uint64) error + func (db Database) SaveCommitSig(height int64, pc tmtypes.CommitSig, votingPower, proposerPriority int64) error + func (db Database) SaveTx(tx *types.Tx) error + func (db Database) SaveValidator(addr, pk string) error