PostgreSQL system module package
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
.gitignore
.swift-version
LICENSE
Package.swift
README.md

README.md

CLibpq

Platform License Slack

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: 13),
    ]
)
  • 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

We have an amazing community of open and welcoming developers. Join us on Slack to get to know us!

License

All Zewo modules are released under the MIT license. See LICENSE for details.