Classes
The following classes are available globally.
-
The
CouchDBClient
represents a connection to a CouchDB server. It is initialized with yourConnectionProperties
and handles the creation, retrieval and deletion of CouchDB databases.Usage Example:
See morelet conProperties = ConnectionProperties( host: "127.0.0.1", // http address port: 5984, // http port secured: false, // https or http username: "<CouchDB-username>", // admin username password: "<CouchDB-password>" // admin password ) let couchDBClient = CouchDBClient(connectionProperties: conProperties)
Declaration
Swift
public class CouchDBClient
-
The
Database
class is used to make HTTP requests to the corresponding CouchDB database. This class can make CRUD (Create, Retrieve, Update, Delete) requests for:- A single CouchDB
Document
- An array of CouchDB documents
- A CouchDB
DesignDocument
- A
Document
attachment
Declaration
Swift
public class Database
- A single CouchDB