vow-sqlite
vow-sqlite SQLite client — path helpers, open, query, exec with Db and Fs caps. Install with vpm:
curl -fsSL https://install.vowlang.dev | shexport PATH="$HOME/.local/bin:$PATH"vpm add vow-sqlitevpm installQuick start
Section titled “Quick start”import vsqlite from vow_sqlite
fn main(caps: Caps) -> int { let path = vsqlite.db_path("/tmp", "demo"); return match caps.db { Some(cap) => with cap { match vsqlite.open_db(cap, path) { Ok(c) => { vsqlite.close(c); 0 }, Err(e) => e.code, } }, None => 0 - 1, };}Run tests
Section titled “Run tests”cd vow-libs/vow-sqlite && vow test tests/sqlite.vow -- --grant db:sqlite:/tmp/demo.sqlite3