tauri-drizzle-sqlite-proxy-demo icon indicating copy to clipboard operation
tauri-drizzle-sqlite-proxy-demo copied to clipboard

A Tauri app with a React front-end and a SQLite database using Drizzle ORM

Tauri + Drizzl ORM + SQLite

This is a simple example of how to use Tauri with Drizzl ORM and SQLite.

Getting Started

Run the following commands to start the application:

npm install
npm run tauri dev

Migration

After updating your models, you can run the following command to generate a new migration file in the src-tauri/migrations folder:

npm run migrate

By adding this to the tauri.config.js file the migrations folder in the app resoureces will be exposed to the tauri app.

"resources": [
    "migrations/*"
]

Database

You can find the sqlite database file in the ~/Library/Application Support/com.tauri.dev folder or the equivalent for your OS. See the Tauri documentation for more information.