skills/tauri-skills/tauri-app-sql/SKILL.md
Access SQLite, MySQL, or PostgreSQL databases from the frontend using the Tauri v2 SQL plugin with migrations. Use when setting up a database connection, running SQL migrations, or executing queries with scoped access from the frontend.
npx skillsauth add partme-ai/full-stack-skills tauri-app-sqlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ALWAYS use this skill when the user mentions:
Trigger phrases include:
cargo add tauri-plugin-sql --features sqlite
use tauri_plugin_sql::{Migration, MigrationKind};
let migrations = vec![Migration {
version: 1, description: "create_users", sql: "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT NOT NULL);",
kind: MigrationKind::Up,
}];
tauri::Builder::default()
.plugin(tauri_plugin_sql::Builder::new().add_migrations("sqlite:app.db", migrations).build())
src-tauri/capabilities/default.json:
{ "permissions": ["sql:allow-load", "sql:allow-execute", "sql:allow-select"] }
import Database from '@tauri-apps/plugin-sql';
const db = await Database.load('sqlite:app.db');
await db.execute('INSERT INTO users (name) VALUES (?)', ['Alice']);
const users = await db.select<{ id: number; name: string }[]>('SELECT * FROM users');
tauri sql, sqlite, database, postgres, mysql, migrations, queries
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.