@Test public void testCreateDB() throws Exception { CouchDBConnection db = client.createDB(getTestDB()); assertEquals(getTestDB(), db.getName()); db.delete(); }
public CouchDBConnection createDB(String name) throws CouchDBException, IOException { CouchDBResponse resp = put(name); resp.checkOK("Unable to create DB"); return openDBConnection(name); }
CouchDBClient implements Closeable { public CouchDBConnection createDB(String name) throws CouchDBException, IOException { CouchDBResponse resp = put(name); resp.checkOK("Unable to create DB"); return openDBConnection(name); } }
CouchDBClient implements Closeable { public CouchDBConnection createDB(String name) throws CouchDBException, IOException { CouchDBResponse resp = put(name); resp.checkOK("Unable to create DB"); return openDBConnection(name); } CouchDBClient(String root); }
CouchDBClient implements Closeable { public CouchDBConnection createDB(String name) throws CouchDBException, IOException { CouchDBResponse resp = put(name); resp.checkOK("Unable to create DB"); return openDBConnection(name); } CouchDBClient(String root); List<String> getDatabaseNames(); CouchDBConnection openDBConnection(String name); CouchDBConnection createDB(String name); CouchDBResponse delete(String path); CouchDBResponse post(String path, String content); CouchDBResponse post(String path, RequestEntity content); CouchDBResponse post(String path, File content); CouchDBResponse put(String path); CouchDBResponse put(String path, String content); CouchDBResponse put(String path, File content); CouchDBResponse get(String path); CouchDBResponse get(String path, NameValuePair[] queryParams); void close(); }
CouchDBClient implements Closeable { public CouchDBConnection createDB(String name) throws CouchDBException, IOException { CouchDBResponse resp = put(name); resp.checkOK("Unable to create DB"); return openDBConnection(name); } CouchDBClient(String root); List<String> getDatabaseNames(); CouchDBConnection openDBConnection(String name); CouchDBConnection createDB(String name); CouchDBResponse delete(String path); CouchDBResponse post(String path, String content); CouchDBResponse post(String path, RequestEntity content); CouchDBResponse post(String path, File content); CouchDBResponse put(String path); CouchDBResponse put(String path, String content); CouchDBResponse put(String path, File content); CouchDBResponse get(String path); CouchDBResponse get(String path, NameValuePair[] queryParams); void close();  }