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 retry credit
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 a bunch of documents at once returning the results
for each identifier in the document list. One can choose the update strategy
by setting the parameter all_or_nothing
to true
or false
.
**The retry strategy is not used in such case.**
Creates or updates the security document.
Returns the security document of this database if any defined
Starts a new replication from source
to target
.
Starts a new replication from source
to target
. if a replication
task already exists for the same source and target, the document is added
but the replication is not started again. The result only contains the identifier
of the actual replication task, not its state.
Stops the replication identified by the given replication document id.
Stops the replication identified by the given replication document id.
if the identifier does not describe the document that started the replication,
it is deleted from the replicator database, but the replication task is not stopped.
It returns true
only if the replication was actually stopped, false
otherwise.
The merge strategy
A replicator database that allows people to manage replications: