Attaches the given file (given as an input stream) to the given document id.
Attaches the given file (given as an input stream) to the given document id.
If no mime type is given, sohva tries to guess the mime type of the file
itself. It it does not manage to identify the mime type, the file won't be
attached...
This method returns true
iff the file was attached to the document.
Attaches the given file to the given document id.
Attaches the given file to the given document id.
If no mime type is given, sohva tries to guess the mime type of the file
itself. It it does not manage to identify the mime type, the file won't be
attached...
This method returns true
iff the file was attached to the document.
Registers to the change stream of this database with potential filter
Creates this database in the couchdb instance if it does not already exist.
The credit assigned to the conflict resolver.
Deletes this database in the couchdb instance if it exists.
Deletes the given attachment for the given docId
Deletes the document identified by the given id from the database.
Deletes the document from the database.
Deletes a bunch of documents at once returning the results for each identifier in the document list.
Returns a design object that allows user to work with views
Indicates whether this database exists
Returns the given attachment for the given docId.
Returns the document identified by the given id if it exists
Returns the current revision of the document if it exists
Returns the current revision of the documents
Returns all the documents with given identifiers and of the given type.
Returns the information about this database
The database name
Creates or updates the given object as a document into this database
The given object must have an _id
and an optional _rev
fields
to conform to the couchdb document structure.
Creates or updates a bunch of documents at once returning the results for each identifier in the document list.
Creates or updates the security document.
Returns the security document of this database if any defined
The strategy being used to resolve conflicts
Gives the user access to the different operations available on a database. Among other operations this is the key class to get access to the documents of this database.
It also exposes the change handler interface, that allows people to react to change notifications. This is a low-level API, that handles raw Json objects