Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

Commit e71f90a

Browse files
authored
feat: use SeaQuery for robust query building with Sqlx (#2)
- Updates `cards` and `decks` repositories to use SeaQuery.
1 parent 1b5cfdb commit e71f90a

5 files changed

Lines changed: 321 additions & 120 deletions

File tree

‎Cargo.lock‎

Lines changed: 159 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ reqwest = { version = "0.12", default-features = false }
2626
rust-embed = "8.7"
2727
serde = "1.0"
2828
serde_json = "1.0"
29+
sea-query = "1.0.0-rc.1"
30+
sea-query-sqlx = "=0.8.0-rc.9"
2931
sqlx = { version = "0.8", default-features = false }
3032
tokio = "1.42"
3133
tracing = "0.1"

‎src/server/Cargo.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ http = { workspace = true }
1313
mime_guess = { workspace = true }
1414
serde = { workspace = true, features = ["derive"] }
1515
serde_json = { workspace = true }
16-
sqlx = { workspace = true, features = ["chrono", "runtime-tokio", "sqlite", "tls-none", "uuid"] }
16+
sea-query = { workspace = true, features = ["sqlx-utils"] }
17+
sea-query-sqlx = { workspace = true, features = ["sqlx-sqlite", "with-chrono", "with-json", "with-uuid", "with-time"] }
18+
sqlx = { workspace = true, features = ["chrono", "macros", "runtime-tokio", "sqlite", "tls-none", "uuid"] }
1719
reqwest = { workspace = true, features = ["rustls-tls"] }
1820
rust-embed = { workspace = true }
1921
tokio = { workspace = true, features = ["rt-multi-thread"] }

0 commit comments

Comments
 (0)