Versions in this module Expand all Collapse all v3 v3.0.1 Dec 28, 2023 v3.0.0 Dec 23, 2022 Changes in this version + type ResultInfo struct + BlockHeight uint64 + Message string + Result []byte + Rwset []byte + Status int + TxId string + TxIndex uint32 + func NewResultInfo(txId string, blockHeight uint64, txIndex uint32, ...) *ResultInfo + func (b *ResultInfo) GetCountSql() (string, []interface{}) + func (b *ResultInfo) GetCreateTableSql(dbType string) string + func (b *ResultInfo) GetInsertSql(dbType string) (string, []interface{}) + func (b *ResultInfo) GetSaveSql(_ string) (string, []interface{}) + func (b *ResultInfo) GetTableName() string + func (b *ResultInfo) GetUpdateSql() (string, []interface{}) + func (b *ResultInfo) ScanObject(scan func(dest ...interface{}) error) error + type ResultSqlDB struct + func NewResultSqlDB(dbName string, db protocol.SqlDBHandle, logger protocol.Logger) *ResultSqlDB + func (h *ResultSqlDB) Close() + func (h *ResultSqlDB) CommitBlock(blockInfo *serialization.BlockWithSerializedInfo, isCache bool) error + func (h *ResultSqlDB) GetRWSetIndex(txId string) (*storePb.StoreInfo, error) + func (h *ResultSqlDB) GetTxRWSet(txId string) (*commonPb.TxRWSet, error) + func (h *ResultSqlDB) InitGenesis(genesisBlock *serialization.BlockWithSerializedInfo) error + func (h *ResultSqlDB) RestoreBlocks(blockInfos []*serialization.BlockWithSerializedInfo) error + func (h *ResultSqlDB) ShrinkBlocks(txIdsMap map[uint64][]string) error + func (s *ResultSqlDB) GetLastSavepoint() (uint64, error) + func (s *ResultSqlDB) ImportSetSavePoint(height uint64) error