-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* General package cleanup * Send JSON to SQLite as TEXT, not BLOB. This restores compatibility with SQLite 3.45.0 and above, due to the new JSONB support changing the interpretation of JSON data in BLOB form (and is what should've been happening all along regardless). * Some tests cleanup * Add AnyExistential correctness. * Quick and dirty fix for yet another of Tanner's disastrous misuses of Codable.
- Loading branch information
Showing
13 changed files
with
271 additions
and
265 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
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,46 @@ | ||
// swift-tools-version:5.9 | ||
import PackageDescription | ||
|
||
let swiftSettings: [SwiftSetting] = [ | ||
.enableUpcomingFeature("ExistentialAny"), | ||
.enableExperimentalFeature("StrictConcurrency=complete"), | ||
] | ||
|
||
let package = Package( | ||
name: "sqlite-kit", | ||
platforms: [ | ||
.macOS(.v10_15), | ||
.iOS(.v13), | ||
.watchOS(.v6), | ||
.tvOS(.v13), | ||
], | ||
products: [ | ||
.library(name: "SQLiteKit", targets: ["SQLiteKit"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-nio.git", from: "2.62.0"), | ||
.package(url: "https://github.com/vapor/sqlite-nio.git", from: "1.8.4"), | ||
.package(url: "https://github.com/vapor/sql-kit.git", from: "3.28.0"), | ||
.package(url: "https://github.com/vapor/async-kit.git", from: "1.19.0"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "SQLiteKit", | ||
dependencies: [ | ||
.product(name: "NIOFoundationCompat", package: "swift-nio"), | ||
.product(name: "AsyncKit", package: "async-kit"), | ||
.product(name: "SQLiteNIO", package: "sqlite-nio"), | ||
.product(name: "SQLKit", package: "sql-kit"), | ||
], | ||
swiftSettings: swiftSettings | ||
), | ||
.testTarget( | ||
name: "SQLiteKitTests", | ||
dependencies: [ | ||
.product(name: "SQLKitBenchmark", package: "sql-kit"), | ||
.target(name: "SQLiteKit"), | ||
], | ||
swiftSettings: swiftSettings | ||
), | ||
] | ||
) |
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,14 +1,28 @@ | ||
<p align="center"> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/1130717/268050157-c372aab8-fe28-4f08-a4bb-270673253a80.png"> | ||
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/1130717/268050207-3275e0a5-9c59-40e0-b854-4ee0af3ebc5c.png"> | ||
<img src="https://user-images.githubusercontent.com/1130717/268050207-3275e0a5-9c59-40e0-b854-4ee0af3ebc5c.png" height="96" alt="SQLiteKit"> | ||
</picture> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/vapor/sqlite-kit/assets/1130717/2d99c0b9-35e5-4f04-bb6c-8d59ff6e78c6"> | ||
<source media="(prefers-color-scheme: light)" srcset="https://github.com/vapor/sqlite-kit/assets/1130717/cb36f94d-3ac3-4fba-b801-fe19eac7dbc2"> | ||
<img src="https://github.com/vapor/sqlite-kit/assets/1130717/cb36f94d-3ac3-4fba-b801-fe19eac7dbc2" height="96" alt="SQLiteKit"> | ||
</picture> | ||
<br> | ||
<br> | ||
<a name=""><img src="https://img.shields.io/badge/sswg-incubating-green.svg" alt="SSWG Incubation"></a> | ||
<a href="https://api.vapor.codes/sqlitekit/documentation/sqlitekit/"><img src="https://img.shields.io/badge/read_the-docs-2196f3.svg" alt="Documentation"></a> | ||
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT License"></a> | ||
<a href="https://github.com/vapor/sqlite-kit/actions/workflows/test.yml"><img src="https://github.com/vapor/sqlite-kit/actions/workflows/test.yml/badge.svg" alt="Continuous Integration"></a> | ||
<a href="https://swift.org"><img src="https://img.shields.io/badge/swift-5.7-brightgreen.svg" alt="Swift 5.7"></a> | ||
<a href="https://docs.vapor.codes/4.0/"><img src="https://design.vapor.codes/images/readthedocs.svg" alt="Documentation"></a> | ||
<a href="https://discord.gg/vapor"><img src="https://design.vapor.codes/images/discordchat.svg" alt="Team Chat"></a> | ||
<a href="LICENSE"><img src="https://design.vapor.codes/images/mitlicense.svg" alt="MIT License"></a> | ||
<a href="https://github.com/vapor/sqlite-kit/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/vapor/sqlite-kit/test.yml?event=push&style=plastic&logo=github&label=test&logoColor=%23ccc" alt="Continuous Integration"></a> | ||
<a href="https://codecov.io/github/vapor/sqlite-kit"><img src="https://img.shields.io/codecov/c/github/vapor/sqlite-kit?style=plastic&logo=codecov&label=Codecov"></a> | ||
<a href="https://swift.org"><img src="https://design.vapor.codes/images/swift57up.svg" alt="Swift 5.7+"></a> | ||
<a href="https://www.swift.org/sswg/incubation-process.html"><img src="https://design.vapor.codes/images/sswg-graduated-white.svg" alt="SSWG Incubation Level: Graduated"></a> | ||
</p> | ||
|
||
<br> | ||
|
||
SQLiteKit is a library providing an [SQLKit] driver for [SQLiteNIO]. | ||
|
||
> [!NOTE] | ||
> The [FluentKit] driver for SQLite is provided by the [FluentSQLiteDriver] package. | ||
[SQLKit]: https://swiftpackageindex.com/vapor/sql-kit | ||
[SQLiteNIO]: https://swiftpackageindex.com/vapor/sqlite-nio | ||
[Fluent]: https://swiftpackageindex.com/vapor/fluent-kit | ||
[FluentSQLiteDriver]: https://swiftpackageindex.com/vapor/fluent-sqlite-driver |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
Sources/SQLiteKit/Docs.docc/images/vapor-sqlitekit-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,46 +1,21 @@ | ||
{ | ||
"theme": { | ||
"aside": { | ||
"border-radius": "6px", | ||
"border-style": "double", | ||
"border-width": "3px" | ||
}, | ||
"border-radius": "0", | ||
"button": { | ||
"border-radius": "16px", | ||
"border-width": "1px", | ||
"border-style": "solid" | ||
}, | ||
"code": { | ||
"border-radius": "16px", | ||
"border-width": "1px", | ||
"border-style": "solid" | ||
}, | ||
"color": { | ||
"fill": { | ||
"dark": "rgb(0, 0, 0)", | ||
"light": "rgb(255, 255, 255)" | ||
}, | ||
"sqlite-teal": "hsl(215, 45%, 58%)", | ||
"documentation-intro-fill": "radial-gradient(circle at top, var(--color-documentation-intro-accent) 30%, #000 100%)", | ||
"documentation-intro-accent": "var(--color-sqlite-teal)", | ||
"documentation-intro-accent-outer": { | ||
"dark": "rgb(255, 255, 255)", | ||
"light": "rgb(0, 0, 0)" | ||
}, | ||
"documentation-intro-accent-inner": { | ||
"dark": "rgb(0, 0, 0)", | ||
"light": "rgb(255, 255, 255)" | ||
} | ||
}, | ||
"icons": { | ||
"technology": "/sqlitekit/images/vapor-sqlite-logo.svg", | ||
"article": "/sqlitekit/images/article.svg" | ||
} | ||
"theme": { | ||
"aside": { "border-radius": "6px", "border-style": "double", "border-width": "3px" }, | ||
"border-radius": "0", | ||
"button": { "border-radius": "16px", "border-width": "1px", "border-style": "solid" }, | ||
"code": { "border-radius": "16px", "border-width": "1px", "border-style": "solid" }, | ||
"color": { | ||
"sqlite": "hsl(215, 45%, 58%)", | ||
"documentation-intro-fill": "radial-gradient(circle at top, var(--color-sqlite) 30%, #000 100%)", | ||
"documentation-intro-accent": "var(--color-sqlite)", | ||
"logo-base": { "dark": "#fff", "light": "#000" }, | ||
"logo-shape": { "dark": "#000", "light": "#fff" }, | ||
"fill": { "dark": "#000", "light": "#fff" } | ||
}, | ||
"features": { | ||
"quickNavigation": { | ||
"enable": true | ||
} | ||
} | ||
"icons": { "technology": "/sqlitekit/images/vapor-sqlitekit-logo.svg" } | ||
}, | ||
"features": { | ||
"quickNavigation": { "enable": true }, | ||
"i18n": { "enable": true } | ||
} | ||
} |
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
Oops, something went wrong.