File tree 4 files changed +13
-17
lines changed
Sources/FluentPostgresDriver
Tests/FluentPostgresDriverTests
4 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,12 @@ jobs:
15
15
- md5
16
16
- scram-sha-256
17
17
swiftver :
18
- - swift:5.2
18
+ - swift:5.4
19
19
- swift:5.5
20
20
- swift:5.6
21
21
- swiftlang/swift:nightly-main
22
22
swiftos :
23
23
- focal
24
- include :
25
- - swiftver : swift:5.2
26
- test_flag : --enable-test-discovery
27
24
container : ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }}
28
25
runs-on : ubuntu-latest
29
26
env :
57
54
steps :
58
55
- name : Check out package
59
56
uses : actions/checkout@v3
60
- - name : Run all tests with Thread Sanitizer
61
- run : swift test ${{ matrix.test_flag }} --sanitize=thread
57
+ - name : Run all tests
58
+ run : swift test
62
59
63
60
macos-all :
64
61
strategy :
@@ -69,10 +66,10 @@ jobs:
69
66
- postgresql@14
70
67
dbauth :
71
68
- scram-sha-256
72
- xcode :
73
- - latest-stable
74
- # - latest
75
- runs-on : macos-11
69
+ macos : ['macos-11', 'macos-12']
70
+ xcode : [' latest-stable', 'latest']
71
+ exclude : [{ macos: 'macos-11', xcode: ' latest' }]
72
+ runs-on : ${{ matrix. macos }}
76
73
env :
77
74
LOG_LEVEL : debug
78
75
POSTGRES_HOSTNAME_A : 127.0.0.1
@@ -103,7 +100,5 @@ jobs:
103
100
timeout-minutes : 2
104
101
- name : Checkout code
105
102
uses : actions/checkout@v3
106
- - name : Run all tests with Thread Sanitizer
107
- run : |
108
- swift test --sanitize=thread -Xlinker -rpath \
109
- -Xlinker $(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx
103
+ - name : Run all tests
104
+ run : swift test
Original file line number Diff line number Diff line change 1
- // swift-tools-version:5.2
1
+ // swift-tools-version:5.4
2
2
import PackageDescription
3
3
4
4
let package = Package (
@@ -11,7 +11,7 @@ let package = Package(
11
11
] ,
12
12
dependencies: [
13
13
. package ( url: " https://github.com/vapor/async-kit.git " , from: " 1.2.0 " ) ,
14
- . package ( url: " https://github.com/vapor/fluent-kit.git " , from: " 1.0 .0 " ) ,
14
+ . package ( url: " https://github.com/vapor/fluent-kit.git " , from: " 1.27 .0 " ) ,
15
15
. package ( url: " https://github.com/vapor/postgres-kit.git " , from: " 2.5.1 " ) ,
16
16
] ,
17
17
targets: [
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ extension _FluentPostgresDatabase: Database {
18
18
var expression = SQLQueryConverter ( delegate: PostgresConverterDelegate ( ) )
19
19
. convert ( query)
20
20
switch query. action {
21
- case . create:
21
+ case . create where query . customIDKey != . string ( " " ) :
22
22
expression = PostgresReturningID (
23
23
base: expression,
24
24
idKey: query. customIDKey ?? . id
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ final class FluentPostgresDriverTests: XCTestCase {
13
13
func testChildren( ) throws { try self . benchmarker. testChildren ( ) }
14
14
func testChunk( ) throws { try self . benchmarker. testChunk ( ) }
15
15
func testCodable( ) throws { try self . benchmarker. testCodable ( ) }
16
+ func testCompositeID( ) throws { try self . benchmarker. testCompositeID ( ) }
16
17
func testCRUD( ) throws { try self . benchmarker. testCRUD ( ) }
17
18
func testEagerLoad( ) throws { try self . benchmarker. testEagerLoad ( ) }
18
19
func testEnum( ) throws { try self . benchmarker. testEnum ( ) }
You can’t perform that action at this time.
0 commit comments