High-level SQL query interface for Tauri desktop applications, wrapping @tauri-apps/plugin-sql with an Active Record pattern. Current version 1.0.1, weekly release cadence. Key differentiators: zero Rust logic (all DB operations in JS/TS), fluent query builder with polymorphic joins, automatic schema synchronization from tabla-model definitions, and cross-compatibility with sqlite3-tab and mysql-tab. Supports SQLite, MySQL, and PostgreSQL via Tauri plugin. Part of the dbtabla ecosystem.
npm install tauri-sql-tabNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows the full setup: load a SQLite database via Tauri plugin, wrap with tauriSqlTab, define a model, register, insert, and select rows.
Use await for Database.load() and pass the resulting db handle to new tauriSqlTab(dbHandle).
Use 'colums' (without 'n') in model construction: new Model('users', { colums: [...] }).Upgrade to Tauri v2 and configure permissions in capabilities/default.json.
Use 'postgres://user:pass@host/db' or 'mysql://user:pass@host/db' as the argument to Database.load().
Ensure Database.load() is awaited and the returned handle is passed to new tauriSqlTab(handle).
Add `.plugin(tauri_plugin_sql::Builder::default().build())` to the Tauri builder in Rust code.
Add 'sql:allow-load', 'sql:allow-execute', 'sql:allow-select' to permissions in src-tauri/capabilities/default.json.