-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Handle JSON better #107
Merged
Merged
Handle JSON better #107
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
11edd9b
General package cleanup
gwynne 411250a
Send JSON to SQLite as TEXT, not BLOB. This restores compatibility wi…
gwynne 29a90bb
Some tests cleanup
gwynne 434a6f2
Add AnyExistential correctness.
gwynne 11aa43f
Quick and dirty fix for yet another of Tanner's disastrous misuses of…
gwynne 73b5097
Add more Sendable compliance
gwynne 9a680bb
Clean up encoder and decoder logic.
gwynne 2063a0b
Add minimum content to README
gwynne 5734414
A bit more test cleanup
gwynne 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI they're dropping the ExistentialAny upcoming feature. I personally liked it. Not sure what exactly are their plans.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Citation or it didn't happen 😜 What an absurd thing to do...