Skip to content

Commit db9edd5

Browse files
committed
Initial commit.
0 parents  commit db9edd5

File tree

7 files changed

+1173
-0
lines changed

7 files changed

+1173
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Package.resolved
2+
.build
3+
PostgresWireServer.xcodeproj

Package.swift

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// swift-tools-version:4.0
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "PostgresWireServer",
6+
products: [
7+
.library(name: "PostgresWireServer", targets: ["PostgresWireServer"]),
8+
.executable(name: "PostgresWireServerExample", targets: ["PostgresWireServerExample"]),
9+
],
10+
dependencies: [
11+
.package(url: "https://github.com/IBM-Swift/BlueSocket.git", from: Version("0.2.0")),
12+
.package(url: "https://github.com/IBM-Swift/HeliumLogger.git", from: Version("1.7.1")),
13+
],
14+
targets: [
15+
.target(name: "PostgresWireServer", dependencies: [
16+
"Socket",
17+
"HeliumLogger"
18+
], path: "Sources/PostgresWireServer"),
19+
.target(name: "PostgresWireServerExample", dependencies: [
20+
"PostgresWireServer"
21+
], path: "Sources/PostgresWireServerExample")
22+
]
23+
)

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Postgres wire server
2+
3+
This package allows you to create a server implementing the PostgreSQL wire protocol (PQ).
4+
5+
## How it works
6+
7+
See [usage example](/Sources/PostgresWireServerExample/main.swift).
8+
9+
## Installation
10+
11+
#### Swift Package Manager (SPM)
12+
13+
You can install the driver using Swift Package Manager by adding the following line to your ```Package.swift``` as a dependency:
14+
15+
```
16+
.Package(url: "https://github.com/pixelspark/postgres-wire-server.git", majorVersion: 1)
17+
```
18+
19+
To use in an Xcode project, generate an Xcode project file using SPM:
20+
```
21+
swift package generate-xcodeproj
22+
```
23+
24+
## MIT license
25+
26+
````
27+
Copyright (c) 2017 Pixelspark, Tommy van der Vorst
28+
29+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
30+
31+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
32+
33+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34+
````
35+
36+
## Contributing
37+
38+
We welcome contributions of all kinds - from typo fixes to complete refactors and new features. Just be sure to contact us if you want to work on something big, to prevent double effort. You can help in the following ways:
39+
40+
* Open an issue with suggestions for improvements
41+
* Submit a pull request (bug fix, new feature, improved documentation)
42+
43+
Note that before we can accept any new code to the repository, we need you to confirm in writing that your contribution is made available to us under the terms of the MIT license.

0 commit comments

Comments
 (0)