forked from plarson/fluent-postgis
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Support for Vapor 4 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
cf5f2cd
Convert everything to Vapor 4
rabc 8a64543
Start refactor unit tests
rabc 6019e95
Update packages
rabc 4bf3bed
Remove encode/decode from GeometricGeometryCollection2D
rabc 522994d
Convert QueryTests
rabc 54bd868
Change WKCodable URL
rabc 90a956f
Update readme
rabc d224b8c
Remove travis
rabc 57eac96
Fix conflicts
rabc 005505e
Re-organize code
rabc 4f268bd
Change package name
rabc a0b14aa
update visiblity
joeblau 0c97c0b
Update to newest Vapor 4
rabc 6f95424
Mark dataType as public
rabc 0aba6b2
Add init
rabc 63d4dae
Merge pull request #1 from joeblau/vapor_4
rabc 56c194b
Merge pull request #2 from rabc/vapor_4
rabc 93cff8c
Fix double init
rabc 147c20d
Merge remote-tracking branch 'rabc/master' into vapor4
84dcb4d
Clean up
db7b2b7
Fixes and cleanup
1f07346
Introduce new overload of filterGeographyDistanceWithin
7425d02
Add tests for filterDistanceWithin and sortByDistance
9573d06
Async/await, better tests, and more
ca1aa1e
Run swiftformat
7aabb86
Update README.md
838fb9b
Add CI
c4d6909
Clean up tests
0b9de0b
Use await for all Migration.prepare in tests
57b2362
Clean up test case setup and teardown
4cdd34d
Add static properties to DatabaseSchema.DataType
487cbbe
Clean up folder naming and data type extension
5f31290
Simplify query builder implementation
3f67541
Also trigger CI on Pull Request
e910c6d
Remove enable-test-discovery flag
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.