Versions in this module Expand all Collapse all v2 v2.3.5 Mar 29, 2024 v2.3.4 Jul 18, 2023 Changes in this version + const ArchivedPivotKey + const BlockHashIdxKeyPrefix + const BlockIndexKeyPrefix + const BlockMetaIndexKeyPrefix + const BlockNumIdxKeyPrefix + const BlockTxIDIdxKeyPrefix + const LastBlockNumKeyStr + const LastConfigBlockNumKey + const TxIDIdxKeyPrefix + var DbType_Mysql = "mysql" + func BuildKVBatch(isBFDB bool, batch *types.UpdateBatch, ...) + func BuildKVBatchForBFDB(batch *types.UpdateBatch, block *commonPb.Block, dbType string, ...) *types.UpdateBatch + func BuildKVBatchForRawDB(batch *types.UpdateBatch, block *commonPb.Block, dbType string, ...) *types.UpdateBatch + func ConstructBlockHashKey(dbType string, blockHash []byte) []byte + func ConstructBlockIndexKey(dbType string, blockNum uint64) []byte + func ConstructBlockMetaIndexKey(dbType string, blockNum uint64) []byte + func ConstructBlockNumKey(dbType string, blockNum uint64) []byte + func ConstructBlockTxIDKey(txID string) []byte + func ConstructFBTxIDBlockInfo(height uint64, blockHash []byte, txIndex uint32, timestamp int64, ...) []byte + func ConstructTxIDBlockInfo(height uint64, blockHash []byte, txIndex uint32, timestamp int64) []byte + func ConstructTxIDKey(txId string) []byte + func DecodeBlockNum(blockNumBytes []byte) uint64 + func DecodeBlockNumKey(dbType string, blkNumBytes []byte) uint64 + func EncodeBlockNum(blockNum uint64) []byte + func GetBlockByHeightKey(dbHandle protocol.DBHandle, cacheSC *cache.StoreCacheMgr, heightKey []byte, ...) (*commonPb.Block, error) + func GetFromCacheFirst(key []byte, dbHandle protocol.DBHandle, cacheSC *cache.StoreCacheMgr, ...) ([]byte, error) + func HandleFDKVRWSet(vBytes []byte, err error) (*commonPb.TxRWSet, error) + func HandleFDKVTx(_ string, vBytes []byte, err error) (*commonPb.Transaction, error) + func ParseFBTxIdBlockInfo(value []byte) (height uint64, blockHash []byte, txIndex uint32, timestamp int64, ...) + func ParseTxIdBlockInfo(value []byte) (height uint64, blockHash []byte, txIndex uint32, timestamp int64, err error) + func ParseTxIdBlockInfoOld(value []byte) (height uint64, blockHash []byte, txIndex uint32, err error) Other modules containing this package chainmaker.org/chainmaker/store/v3