-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update for new SQLKit and support more URL string formats (#325)
* Update package infrastructure, bump Swift minimum to 5.8, add ExistentialAny and StrictConcurrency compliance * Leverage the new SQLKit functionality, remove various crashing codepaths from the encoder and decoder, add more features to the dialect, improve NULL handling, other misc cleanup * Remove obsolete file * Add Swift 5.9 manifest * Improve docs * Add support for additional MySQL URL formats. * Add 100% doc comments coverage (rather trivial for this package) * Add tests for new URL formats and use the undeprecated SQLBenchmarker API * Make MySQLConfiguration Sendable
- Loading branch information
Showing
22 changed files
with
866 additions
and
355 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 |
---|---|---|
@@ -1 +1,8 @@ | ||
* @0xTim @gwynne | ||
* @gwynne | ||
/.github/CONTRIBUTING.md @gwynne @0xTim | ||
/.github/workflows/*.yml @gwynne @0xTim | ||
/.github/workflows/test.yml @gwynne | ||
/.spi.yml @gwynne @0xTim | ||
/.gitignore @gwynne @0xTim | ||
/LICENSE @gwynne @0xTim | ||
/README.md @gwynne @0xTim |
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
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
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
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,53 @@ | ||
// swift-tools-version:5.9 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "mysql-kit", | ||
platforms: [ | ||
.macOS(.v10_15), | ||
.iOS(.v13), | ||
.watchOS(.v6), | ||
.tvOS(.v13), | ||
], | ||
products: [ | ||
.library(name: "MySQLKit", targets: ["MySQLKit"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/vapor/mysql-nio.git", from: "1.7.1"), | ||
.package(url: "https://github.com/vapor/sql-kit.git", from: "3.29.2"), | ||
.package(url: "https://github.com/vapor/async-kit.git", from: "1.19.0"), | ||
.package(url: "https://github.com/apple/swift-crypto.git", "2.0.0" ..< "4.0.0"), | ||
.package(url: "https://github.com/apple/swift-nio.git", from: "2.64.0"), | ||
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.26.0"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "MySQLKit", | ||
dependencies: [ | ||
.product(name: "AsyncKit", package: "async-kit"), | ||
.product(name: "MySQLNIO", package: "mysql-nio"), | ||
.product(name: "SQLKit", package: "sql-kit"), | ||
.product(name: "Crypto", package: "swift-crypto"), | ||
.product(name: "NIOFoundationCompat", package: "swift-nio"), | ||
.product(name: "NIOSSL", package: "swift-nio-ssl"), | ||
], | ||
swiftSettings: swiftSettings | ||
), | ||
.testTarget( | ||
name: "MySQLKitTests", | ||
dependencies: [ | ||
.product(name: "SQLKitBenchmark", package: "sql-kit"), | ||
.target(name: "MySQLKit"), | ||
], | ||
swiftSettings: swiftSettings | ||
), | ||
] | ||
) | ||
|
||
var swiftSettings: [SwiftSetting] { [ | ||
.enableUpcomingFeature("ExistentialAny"), | ||
.enableUpcomingFeature("ConciseMagicFile"), | ||
.enableUpcomingFeature("ForwardTrailingClosures"), | ||
.enableUpcomingFeature("DisableOutwardActorInference"), | ||
.enableExperimentalFeature("StrictConcurrency=complete"), | ||
] } |
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
Oops, something went wrong.