You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.9 KiB
1.9 KiB
+++ title = "Implement database connection module and SQLx migrations (quotes + quote_tags schema)" priority = 8 status = "todo" ticket_type = "task" dependencies = ["f3dc74", "1f5bb5", "e8a330", "580e66", "33ed29"] +++
The `quotesdb` API is built with Axum + Tokio, targeting Cloudflare Workers via `workers-rs`. It serves JSON at `/api/*` endpoints and persists data to Cloudflare D1 (production) or a local SQLite file via Turso (development). Source lives in `src/bin/api/`.Shared types and utilities are in src/lib.rs — code placed there must compile for both the host target and wasm32-unknown-unknown.
The database schema consists of two tables:
quotes— stores id (NanoID), text, author, source, date, auth_code, created_at, updated_atquote_tags— join table for quote-to-tag relationships with cascade delete
cargo fmt
cargo check
cargo clippy
cargo test
`feat(quotesdb): implement database connection module and SQLx migrations`