Class CouchDbClientWrapper
java.lang.Object
org.apache.camel.component.couchdb.CouchDbClientWrapper
Necessary to allow mockito to mock this client. Once LightCouch library adds an interface for the client, this class
can be removed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CouchDbClientWrapper
public CouchDbClientWrapper(org.lightcouch.CouchDbClient client)
-
-
Method Details
-
update
-
save
-
remove
-
changes
public org.lightcouch.Changes changes() -
get
-
context
public org.lightcouch.CouchDbContext context() -
getLatestUpdateSequence
In CouchDB 2.3.x, the purge_seq field type was changed from number to string. As such, callingCouchDbContext.info()
was throwing an exception. This method workarounds the issue by getting the update_seq field while ignoring the purge_seq field.- Returns:
- The latest update sequence
-