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 tag join logic — fetch tags per quote, insert/replace tags on create/update" priority = 5 status = "done" ticket_type = "task" dependencies = ["a5049d"] +++
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.
Each quote can have multiple tags stored in the quote_tags join table. Tags are not normalised — they are stored as plain strings per quote. On create/update, all tags for the quote are replaced atomically.
This logic should live in a db or tags module and be called from the create and update handlers.
cargo fmt
cargo check
cargo clippy
cargo test
`feat(quotesdb): implement tag join logic — fetch and replace tags per quote`