Swiftpack.co - Package - PerfectlySoft/Perfect-CouchDB

Perfect-CouchDB 简体中文

Perfect logo

Perfect logo Perfect logo Perfect logo Perfect logo

Swift 3.0 Platforms OS X | Linux License Apache Twitter Join the chat at https://gitter.im/PerfectlySoft/Perfect Slack Status GitHub version

Apache CouchDB connector for Perfect

NOTE: This project is in beta

This project provides connectivity to Apache CouchDB.

Full documentation can be found at http://www.perfect.org/docs/CouchDB.html

This package builds with Swift Package Manager and is part of the Perfect project. It was written to be stand-alone and so does not require PerfectLib or any other components.

Ensure you have installed and activated the latest Swift 3.0 tool chain.

Example usage:

var test = CouchDB()
var auth = CouchDBAuthentication("perfect", "perfect", auth: .basic)

test.connector.port = 5984
test.authentication = auth
let code = test.databaseCreate("testdb")

let dataSubmit = ["one":"ONE","two":"TWO"]
do {
	let (addCode, response) = try test.addDoc("testdb",doc: dataSubmit)
	print(addCode)
	print(response)
} catch {
	print(error)
}

Building

Add this project as a dependency in your Package.swift file.

.Package(url: "https://github.com/PerfectlySoft/Perfect-CouchDB.git", majorVersion: 1)

Issues

We are transitioning to using JIRA for all bugs and support related issues, therefore the GitHub issues has been disabled.

If you find a mistake, bug, or any other helpful suggestion you'd like to make on the docs please head over to http://jira.perfect.org:8080/servicedesk/customer/portal/1 and raise it.

A comprehensive list of open issues can be found at http://jira.perfect.org:8080/projects/ISS/issues

Further Information

For more information on the Perfect project, please visit perfect.org.