Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ZewoGraveyard/PostgreSQL
PostgreSQL database adapter (ORM included)
https://github.com/ZewoGraveyard/PostgreSQL
Last synced: 3 months ago
JSON representation
PostgreSQL database adapter (ORM included)
- Host: GitHub
- URL: https://github.com/ZewoGraveyard/PostgreSQL
- Owner: ZewoGraveyard
- License: mit
- Created: 2015-12-08T22:50:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-23T00:34:21.000Z (almost 8 years ago)
- Last Synced: 2024-05-18T22:53:13.527Z (6 months ago)
- Language: Swift
- Homepage:
- Size: 336 KB
- Stars: 88
- Watchers: 17
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- TheList - Zewo PostgreSQL
README
# PostgreSQL
[![Swift][swift-badge]][swift-url]
[![Zewo][zewo-badge]][zewo-url]
[![Platform][platform-badge]][platform-url]
[![License][mit-badge]][mit-url]
[![Slack][slack-badge]][slack-url]
[![Travis][travis-badge]][travis-url]
[![Codebeat][codebeat-badge]][codebeat-url]**PostgreSQL** adapter for **Swift 3.0**.
Conforms to [SQL](https://github.com/Zewo/SQL), which provides a common interface and ORM. Documentation can be found there.
## Installation
- Linux
```bash
$ apt-get install libpq-dev
```- OSX
```bash
$ brew install postgresql
```- Add `PostgreSQL` to your `Package.swift`
```swift
import PackageDescriptionlet package = Package(
dependencies: [
.Package(url: "https://github.com/Zewo/PostgreSQL.git", majorVersion: 0, minor: 14)
]
)```
- Build on OSX
```bash
$ swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib/
```- Generate Xcode project
```bash
$ swift package generate-xcodeproj -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib/ -Xswiftc -I/usr/local/include
```- Build on Linux
```bash
$ swift build -Xcc -I/usr/include/postgresql
```## Community
[![Slack](http://s13.postimg.org/ybwy92ktf/Slack.png)](http://slack.zewo.io)
Join us on [Slack](http://slack.zewo.io).
## License
**PostgreSQL** is released under the MIT license. See LICENSE for details.
[swift-badge]: https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat
[swift-url]: https://swift.org
[zewo-badge]: https://img.shields.io/badge/Zewo-0.14-FF7565.svg?style=flat
[zewo-url]: http://zewo.io
[platform-badge]: https://img.shields.io/badge/Platform-Mac%20%26%20Linux-lightgray.svg?style=flat
[platform-url]: https://swift.org
[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat
[mit-url]: https://tldrlegal.com/license/mit-license
[slack-image]: http://s13.postimg.org/ybwy92ktf/Slack.png
[slack-badge]: https://zewo-slackin.herokuapp.com/badge.svg
[slack-url]: http://slack.zewo.io
[travis-badge]: https://travis-ci.org/Zewo/PostgreSQL.svg?branch=master
[travis-url]: https://travis-ci.org/Zewo/PostgreSQL
[codebeat-badge]: https://codebeat.co/badges/2548b359-daf1-404b-b5ae-687b98c02101
[codebeat-url]: https://codebeat.co/projects/github-com-zewo-postgresql