github.com/Zewo/CLibpq

PostgreSQL system module package


License
MIT

Documentation

CLibpq

Swift 3.0 Platforms Linux License MIT Slack Status

CLibpq provides PostgreSQL for Swift 3.0.

Documentation

Installation

  • OSX
$ brew install postgresql
  • Linux
$ apt-get install libpq-dev
  • Add CLibpq to your Package.swift
import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/Zewo/CLibpq.git", majorVersion: 0, minor: 5)
    ]
)
  • Build on OSX
$ swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib/
  • Generate Xcode project
$ swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib/ -Xswiftc -I/usr/local/include -X
  • Build on Linux
$ swift build -Xcc -I/usr/include/postgresql

Community

Slack

Join us on Slack.

License

CLibpq is released under the MIT license. See LICENSE for details.