package
1.1.0-preview
Repository: https://github.com/ckeyer/fabric.git
Documentation: pkg.go.dev

# Functions

ApplyQueryWrapper parses the query string passed to CouchDB the wrapper prepends the wrapper "data." to all fields specified in the query All fields in the selector must have "data." prepended to the field names Fields listed in fields key will have "data." prepended Fields in the sort key will have "data." prepended - The query will be scoped to the chaincodeid - limit be added to the query and is based on config - skip is defaulted to 0 and is currently not used, this is for future paging implementation In the example a contextID of "marble" is assumed.
CleanupDB drops the test couch databases.
NewTestVDBEnv instantiates and new couch db backed TestVDB.
NewVersionedDBProvider instantiates VersionedDBProvider.

# Structs

BatchableDocument defines a document for a batch.
CommittedVersions contains maps of committedVersions and revisionNumbers.
TestVDBEnv provides a couch db backed versioned db for testing.
VersionedDB implements VersionedDB interface.
VersionedDBProvider implements interface VersionedDBProvider.