PostgreSQL adapter for Swift 3.0.
Conforms to SQL, which provides a common interface and ORM. Documentation can be found there.
- Linux
$ apt-get install libpq-dev
- OSX
$ brew install postgresql
- Add
PostgreSQL
to yourPackage.swift
import PackageDescription
let package = Package(
dependencies: [
.Package(url: "https://github.com/Zewo/PostgreSQL.git", majorVersion: 0, minor: 14)
]
)
- Build on OSX
$ swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib/
- Generate Xcode project
$ swift package generate-xcodeproj -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib/ -Xswiftc -I/usr/local/include
- Build on Linux
$ swift build -Xcc -I/usr/include/postgresql
Join us on Slack.
PostgreSQL is released under the MIT license. See LICENSE for details.