Classes
The following classes are available globally.
-
The
CouchDBClientrepresents a connection to a CouchDB server. It is initialized with yourConnectionPropertiesand 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
Databaseclass 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
Documentattachment
Declaration
Swift
public class Database - A single CouchDB
View on GitHub
Classes Reference