Releases: Akachain/akc-go-sdk
Release v1.0.11
Fix go module problems
Merge pull request #33 from Akachain/release-1.0.8 Release 1.0.8
Rework dbHandle
This release complete the rework job of util/dbHandle.
-
We changed from using Hyperledger Fabric couchdb util to statecouchdb.VersionedDB to correctly mimic how a peer perform endorse a transaction.
-
We change all DB write action to VersionedDB.ApplyUpdates to mimic the transaction batch write process to stateDB
hot fix dependency
Fix dependency for v1.0.8
Add UpdateExistingData
Problem
The current Changeinfo
function in daoHandle
uses InsertTableRow requiring the engine to perform a GetState before PutState. In some case, we have already performed GetState before (e.g. to check a user balance before deducing his balance). Thus, the current Changeinfo creates an extra GetState to the state database.
Update
We add other functions in utils
: UpdateExistingData
and UpdateTableRow
so that the engine performs PutState directly without checking the state again.
unit test for partial key query
Add unit test supports for those 2 functions:
- GetStateByPartialCompositeKey
- GetStateByPartialCompositeKeyWithPagination
Hot fix akcQueryIterator
Add Close() function for AkcQueryIterator
Change MockStubExtend query behavior
We change MockStubExtend query behavior to query directly from couchdb.
Previously the mock object stores key-value data in an array, which is not consistent with the real Fabric behavior.
Add delete state in couchdb
v1.0.6 Add delete state
Add support for customized couchdb connection string
Previous version only supports localhost couchdb,
we add a new function to support external databases as well