Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 2023 v3.0.0 Dec 23, 2022 Changes in this version + type AccountTxHistoryInfo struct + AccountId []byte + BlockHeight uint64 + TxId string + func (b *AccountTxHistoryInfo) GetCountSql() (string, []interface{}) + func (b *AccountTxHistoryInfo) GetCreateTableSql(dbType string) string + func (b *AccountTxHistoryInfo) GetInsertSql(dbType string) (string, []interface{}) + func (b *AccountTxHistoryInfo) GetSaveSql(_ string) (string, []interface{}) + func (b *AccountTxHistoryInfo) GetTableName() string + func (b *AccountTxHistoryInfo) GetUpdateSql() (string, []interface{}) + type ContractTxHistoryInfo struct + AccountId []byte + BlockHeight uint64 + ContractName string + TxId string + func (b *ContractTxHistoryInfo) GetCountSql() (string, []interface{}) + func (b *ContractTxHistoryInfo) GetCreateTableSql(dbType string) string + func (b *ContractTxHistoryInfo) GetInsertSql(dbType string) (string, []interface{}) + func (b *ContractTxHistoryInfo) GetSaveSql(_ string) (string, []interface{}) + func (b *ContractTxHistoryInfo) GetTableName() string + func (b *ContractTxHistoryInfo) GetUpdateSql() (string, []interface{}) + type HistorySqlDB struct + func NewHistorySqlDB(dbName string, config *conf.HistoryDbConfig, db protocol.SqlDBHandle, ...) *HistorySqlDB + func (h *HistorySqlDB) Close() + func (h *HistorySqlDB) CommitBlock(blockInfo *serialization.BlockWithSerializedInfo, isCache bool) error + func (h *HistorySqlDB) GetAccountTxHistory(account []byte) (historydb.HistoryIterator, error) + func (h *HistorySqlDB) GetContractTxHistory(contractName string) (historydb.HistoryIterator, error) + func (h *HistorySqlDB) GetHistoryForKey(contractName string, key []byte) (historydb.HistoryIterator, error) + func (h *HistorySqlDB) InitGenesis(genesisBlock *serialization.BlockWithSerializedInfo) error + func (s *HistorySqlDB) GetLastSavepoint() (uint64, error) + type StateHistoryInfo struct + BlockHeight uint64 + ContractName string + StateKey []byte + TxId string + func NewStateHistoryInfo(contractName, txid string, stateKey []byte, blockHeight uint64) *StateHistoryInfo + func (b *StateHistoryInfo) GetCountSql() (string, []interface{}) + func (b *StateHistoryInfo) GetCreateTableSql(dbType string) string + func (b *StateHistoryInfo) GetInsertSql(_ string) (string, []interface{}) + func (b *StateHistoryInfo) GetSaveSql(_ string) (string, []interface{}) + func (b *StateHistoryInfo) GetTableName() string + func (b *StateHistoryInfo) GetUpdateSql() (string, []interface{}) Other modules containing this package chainmaker.org/chainmaker/store/v2