This is a simple example of how to use Tauri with Drizzl ORM and SQLite.
Run the following commands to start the application:
npm install
npm run tauri dev
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/*"
]
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.