File tree 4 files changed +21
-21
lines changed
4 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,17 @@ jobs:
23
23
MYSQL_USER : vapor_username
24
24
MYSQL_PASSWORD : vapor_password
25
25
MYSQL_DATABASE : vapor_database
26
- container : swift:5.4 -focal
26
+ container : swift:5.5 -focal
27
27
strategy :
28
28
fail-fast : false
29
29
matrix :
30
30
dbimage :
31
31
- mysql:5.7
32
32
- mysql:8.0
33
- - mariadb:latest
33
+ - mariadb:10.2
34
+ - mariadb:10.6
35
+ - percona:5.7
36
+ - percona:8.0
34
37
dependent :
35
38
- fluent-mysql-driver
36
39
steps :
@@ -62,12 +65,13 @@ jobs:
62
65
dbimage :
63
66
- mysql:5.7
64
67
- mysql:8.0
65
- - mariadb:latest
68
+ - mariadb:10.2
69
+ - mariadb:10.6
70
+ - percona:5.7
71
+ - percona:8.0
66
72
runner :
67
73
- swift:5.2-focal
68
- - swift:5.3-focal
69
- - swift:5.4-focal
70
- - swiftlang/swift:nightly-5.5-focal
74
+ - swift:5.5-focal
71
75
- swiftlang/swift:nightly-main-focal
72
76
container : ${{ matrix.runner }}
73
77
runs-on : ubuntu-latest
@@ -94,15 +98,15 @@ jobs:
94
98
formula :
95
99
- mysql@8.0
96
100
- mysql@5.7
97
- - mariadb
101
+ - percona-server
102
+ - mariadb@10.6
98
103
version :
99
- - latest
100
104
- latest-stable
101
105
include :
102
106
- username : root
103
- - formula : mariadb
107
+ - formula : mariadb@10.6
104
108
username : runner
105
- runs-on : macos-latest
109
+ runs-on : macos-11
106
110
steps :
107
111
- name : Select latest available Xcode
108
112
uses : maxim-lobanov/setup-xcode@v1
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ let package = Package(
11
11
] ,
12
12
dependencies: [
13
13
. package ( url: " https://github.com/vapor/mysql-nio.git " , from: " 1.0.0 " ) ,
14
- . package ( url: " https://github.com/vapor/sql-kit.git " , from: " 3.0 .0 " ) ,
14
+ . package ( url: " https://github.com/vapor/sql-kit.git " , from: " 3.12 .0 " ) ,
15
15
. package ( url: " https://github.com/vapor/async-kit.git " , from: " 1.0.0 " ) ,
16
16
. package ( url: " https://github.com/apple/swift-crypto.git " , from: " 1.0.0 " ) ,
17
17
. package ( url: " https://github.com/apple/swift-nio.git " , from: " 2.0.0 " ) ,
Original file line number Diff line number Diff line change @@ -69,4 +69,8 @@ public struct MySQLDialect: SQLDialect {
69
69
public var triggerSyntax : SQLTriggerSyntax {
70
70
return . init( create: [ . supportsBody, . conditionRequiresParentheses, . supportsOrder] )
71
71
}
72
+
73
+ public var upsertSyntax : SQLUpsertSyntax {
74
+ . mysqlLike
75
+ }
72
76
}
Original file line number Diff line number Diff line change @@ -6,12 +6,8 @@ import NIOSSL
6
6
import AsyncKit
7
7
8
8
class MySQLKitTests : XCTestCase {
9
- func testSQLKitBenchmark( ) throws {
10
- try self . benchmark. run ( )
11
- }
12
-
13
- func testEnum( ) throws {
14
- try self . benchmark. testEnum ( )
9
+ func testSQLBenchmark( ) throws {
10
+ try SQLBenchmarker ( on: self . sql) . run ( )
15
11
}
16
12
17
13
func testNullDecode( ) throws {
@@ -60,10 +56,6 @@ class MySQLKitTests: XCTestCase {
60
56
self . pools. database ( logger: . init( label: " codes.vapor.mysql " ) )
61
57
}
62
58
63
- var benchmark : SQLBenchmarker {
64
- . init( on: self . sql)
65
- }
66
-
67
59
var eventLoopGroup : EventLoopGroup !
68
60
var pools : EventLoopGroupConnectionPool < MySQLConnectionSource > !
69
61
You can’t perform that action at this time.
0 commit comments