public class CouchDbContext extends Object
CouchDbClientBase.context()
Modifier and Type | Method and Description |
---|---|
void |
compact()
Triggers a database compaction request.
|
void |
createDB(String dbName)
Requests CouchDB creates a new database; if one doesn't exist.
|
void |
deleteDB(String dbName,
String confirm)
Requests CouchDB deletes a database.
|
void |
ensureFullCommit()
Requests the database commits any recent changes to disk.
|
List<String> |
getAllDbs() |
CouchDbInfo |
info()
Gets the info of the associated database instance with this client.
|
String |
serverVersion() |
List<String> |
uuids(long count)
Request a database sends a list of UUIDs.
|
public void deleteDB(String dbName, String confirm)
dbName
- The database nameconfirm
- A confirmation string with the value: delete databasepublic void createDB(String dbName)
dbName
- The Database namepublic CouchDbInfo info()
CouchDbInfo
public String serverVersion()
public void compact() throws UnsupportedEncodingException
UnsupportedEncodingException
public void ensureFullCommit() throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2011–2014. All rights reserved.