forked from plarson/fluent-postgis
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from PoshAlpaca/vapor4
Support for Vapor 4
- Loading branch information
Showing
50 changed files
with
1,156 additions
and
1,887 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: CI | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
test: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgis/postgis | ||
ports: | ||
- "5432:5432" | ||
env: | ||
POSTGRES_USER: fluentpostgis | ||
POSTGRES_PASSWORD: fluentpostgis | ||
POSTGRES_DB: postgis_tests | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: swift test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--extensionacl on-declarations | ||
--header strip | ||
--maxwidth 100 | ||
--self insert | ||
--swiftversion 5.5 | ||
--wraparguments before-first | ||
--wrapcollections before-first | ||
--wrapparameters before-first |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
test-db: | ||
docker run --rm -e POSTGRES_PASSWORD=fluentpostgis -e POSTGRES_USER=fluentpostgis -e POSTGRES_DB=postgis_tests -p 5432:5432 odidev/postgis:11-2.5-alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,37 @@ | ||
// swift-tools-version:4.1 | ||
// swift-tools-version:5.5 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "FluentPostGIS", | ||
name: "fluent-postgis", | ||
platforms: [ | ||
.macOS(.v12), | ||
], | ||
products: [ | ||
// FluentPostgreSQL support for PostGIS | ||
.library( | ||
name: "FluentPostGIS", | ||
targets: ["FluentPostGIS"]), | ||
targets: ["FluentPostGIS"] | ||
), | ||
], | ||
dependencies: [ | ||
// Swift ORM framework (queries, models, and relations) for building NoSQL and SQL database integrations. | ||
.package(url: "https://github.com/vapor/fluent.git", from: "3.0.0"), | ||
|
||
// 🐘 Non-blocking, event-driven Swift client for PostgreSQL. | ||
.package(url: "https://github.com/vapor/fluent-postgresql.git", from: "1.0.0"), | ||
|
||
// Well Known Binary Encoding and Decoding | ||
.package(url: "https://github.com/plarson/WKCodable", from: "0.1.1"), | ||
.package(url: "https://github.com/vapor/fluent-kit.git", from: "1.0.0"), | ||
.package(url: "https://github.com/vapor/fluent-postgres-driver.git", from: "2.0.0"), | ||
.package(url: "https://github.com/rabc/WKCodable.git", from: "0.1.0"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "FluentPostGIS", | ||
dependencies: ["FluentPostgreSQL", "WKCodable"]), | ||
dependencies: [ | ||
.product(name: "FluentKit", package: "fluent-kit"), | ||
.product(name: "FluentPostgresDriver", package: "fluent-postgres-driver"), | ||
.product(name: "WKCodable", package: "WKCodable"), | ||
] | ||
), | ||
.testTarget( | ||
name: "FluentPostGISTests", | ||
dependencies: ["FluentBenchmark", "FluentPostGIS"]), | ||
dependencies: [ | ||
.target(name: "FluentPostGIS"), | ||
.product(name: "FluentBenchmark", package: "fluent-kit"), | ||
] | ||
), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
Sources/FluentPostGIS/Geographic/GeographicLineString2D.swift
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
Sources/FluentPostGIS/Geographic/GeographicMultiPoint2D.swift
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
Sources/FluentPostGIS/Geographic/GeographicMultiPolygon2D.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.