Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: test
on:
- pull_request
jobs:
xenial:
postgres-nio:
container:
image: vapor/swift:5.1-xenial
image: vapor/swift:5.2
services:
psql:
image: postgres
Expand All @@ -18,9 +18,9 @@ jobs:
steps:
- uses: actions/checkout@v1
- run: swift test --enable-test-discovery --sanitize=thread
bionic:
postgres-kit:
container:
image: vapor/swift:5.1-bionic
image: vapor/swift:5.2
services:
psql:
image: postgres
Expand All @@ -32,9 +32,15 @@ jobs:
POSTGRES_PASSWORD: vapor_password
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: git clone -b master https://github.com/vapor/postgres-kit.git
working-directory: ./
- run: swift package edit postgres-nio --revision ${{ github.sha }}
working-directory: ./postgres-kit
- run: swift test --enable-test-discovery --sanitize=thread
fluent:
working-directory: ./postgres-kit
env:
POSTGRES_HOSTNAME: psql
fluent-postgres-driver:
container:
image: vapor/swift:5.2
services:
Expand Down
15 changes: 10 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
// swift-tools-version:5.1
// swift-tools-version:5.2
import PackageDescription

let package = Package(
name: "postgres-nio",
platforms: [
.macOS(.v10_14)
.macOS(.v10_15)
],
products: [
.library(name: "PostgresNIO", targets: ["PostgresNIO"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-crypto.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-metrics.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
],
targets: [
.target(name: "CMD5", dependencies: []),
.target(name: "PostgresNIO", dependencies: [
"CMD5", "Logging", "Metrics", "NIO", "NIOSSL"
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Metrics", package: "swift-metrics"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
]),
.testTarget(name: "PostgresNIOTests", dependencies: [
"PostgresNIO", "NIOTestUtils"
.target(name: "PostgresNIO"),
.product(name: "NIOTestUtils", package: "swift-nio"),
]),
]
)
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<p align="center">
<img src="https://user-images.githubusercontent.com/1342803/59061804-5548e280-8872-11e9-819f-14f19f16fcb6.png" alt="PostgresNIO">
<br>
<br>
<a href="https://api.vapor.codes/postgres-nio/master/PostgresNIO/index.html">
<img src="http://img.shields.io/badge/api-docs-2196f3.svg" alt="Documentation">
</a>
<a href="https://discord.gg/vapor">
<img src="https://img.shields.io/discord/431917998102675485.svg" alt="Team Chat">
</a>
<a href="LICENSE">
<img src="http://img.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT License">
</a>
<a href="https://circleci.com/gh/vapor/postgres-nio">
<img src="https://circleci.com/gh/vapor/postgres-nio.svg?style=shield" alt="Continuous Integration">
</a>
<a href="https://swift.org">
<img src="http://img.shields.io/badge/swift-5-brightgreen.svg" alt="Swift 5">
</a>
</p>
<img src="https://user-images.githubusercontent.com/1342803/59061804-5548e280-8872-11e9-819f-14f19f16fcb6.png" height="64" alt="PostgresNIO">
<br>
<a href="https://docs.vapor.codes/4.0/">
<img src="http://img.shields.io/badge/read_the-docs-2196f3.svg" alt="Documentation">
</a>
<a href="https://discord.gg/vapor">
<img src="https://img.shields.io/discord/431917998102675485.svg" alt="Team Chat">
</a>
<a href="LICENSE">
<img src="http://img.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT License">
</a>
<a href="https://circleci.com/gh/vapor/postgres-nio">
<img src="https://circleci.com/gh/vapor/postgres-nio.svg?style=shield" alt="Continuous Integration">
</a>
<a href="https://swift.org">
<img src="http://img.shields.io/badge/swift-5-brightgreen.svg" alt="Swift 5">
</a>
<br>
<br>

🐘 Non-blocking, event-driven Swift client for PostgreSQL built on [SwiftNIO](https://github.com/apple/swift-nio).

Expand Down
Loading