Returns the list of identifiers of the documents in this database
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.
Returns a built-in view of this database, identified by its name.
Registers to the change stream of this database with potential filter and since some revision.
Copies the origin document to the target document.
The couchdb instance this database belongs to
Creates this database in the couchdb instance if it does not already exist.
Creates a document in the database and returns its identifier and revision.
Creates a set of documents in the database and returns theirs identifiers and revision.
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 raw repsentation of the document identified by the given id if it exists
Returns the information about this database
The database name
Patches the document identified by the given identifier in the given revision.
Patches the document identified by the given identifier in the given revision. This will work if the revision is the last one, or if it is not but the automatic conflict manager manages to solve the potential conflicts. The patched revision is returned. If something went wrong, an exception is raised
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 into the database.
Creates or updates the security document.
Returns the security document of this database if any defined
The serializer used by this database
The strategy being used to resolve conflicts
Returns a temporary view of this database, specified by the ViewDoc
.
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