Skip to main content
Run any Skill in Manus
with one click

rusqlite-patterns

Stars2
Forks0
UpdatedMay 10, 2026 at 21:42

rusqlite-side DB patterns for the Tauri build — global Mutex<Option<Connection>>, the 5 SQL primitives in src-tauri/src/db.rs (db_run, db_get, db_all, db_batch, db_run_changes), parameter binding (positional via &[Value], named via named_params!), transaction wrappers, the prepare_cached statement cache, when to add an api/-layer function vs a Rust command, DELETE vs WAL journaling. Use when editing src-tauri/src/db.rs, adding any new Rust SQL helper, or asking "should this go in api/ or in Rust?".

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly