GetState(key string) ([]byte, error) |
获取指定键对应的值 |
PutState(key string, value []byte) error |
在账本中添加或者更新一对键值 |
DelState(key string) error |
在账本中删除一对键值 |
SetStateValidationParameter(key string, ep []byte) error |
设置特定键值的背书策略 |
GetStateValidationParameter(key string) ([]byte, error) |
获取特定键值的背书策略 |
GetStateByRange(startKey, endKey string) (StateQueryIteratorInterface, error) |
查询指定范围内的键值 |
GetStateByRangeWithPagination(startKey, endKey string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) |
分页查询指定范围内的键值 |
GetStateByPartialCompositeKey(objectType string, keys []string) (StateQueryIteratorInterface, error) |
查询匹配局部复合键的所有键值 |
GetStateByPartialCompositeKeyWithPagination(objectType string, keys []string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) |
分页查询匹配局部复合键的所有键值 |
GetQueryResult(query string) (StateQueryIteratorInterface, error) |
使用富查询方式查询状态数据库,状态数据库需要能够支持富查询功能 |
GetQueryResultWithPagination(query string, pageSize int32, bookmark string) (StateQueryIteratorInterface, *pb.QueryResponseMetadata, error) |
使用富查询方式分页查询状态数据库,状态数据库需要能够支持富查询功能 |
GetHistoryForKey(key string) (HistoryQueryIteratorInterface, error) |
返回对应键的所有历史值 |
GetPrivateData(collection, key string) ([]byte, error) |
获取指定私有数据集中的键的值 |
GetPrivateDataHash(collection, key string) ([]byte, error) |
获取指定私有数据集中的键的值的 hash |
PutPrivateData(collection string, key string, value []byte) error |
设置指定私有数据集中键的值 |
DelPrivateData(collection, key string) error |
删除指定私有数据集中指定的键 |
SetPrivateDataValidationParameter(collection, key string, ep []byte) error |
设置私有数据集中指定键的背书策略 |
GetPrivateDataValidationParameter(collection, key string) ([]byte, error) |
获取私有数据集中指定键的背书策略 |
GetPrivateDataByRange(collection, startKey, endKey string) (StateQueryIteratorInterface, error) |
获取指定私有数据集中特定范围键的键值 |
GetPrivateDataByPartialCompositeKey(collection, objectType string, keys []string) (StateQueryIteratorInterface, error) |
获取指定私有数据集中匹配局部复合键的键值 |
GetPrivateDataQueryResult(collection, query string) (StateQueryIteratorInterface, error) |
通过富查询方式查询私有数据集,状态数据库需要能够支持富查询功能 |