Awesome
Native DB + Tauri + Vanilla
This is a simple example of a Tauri app using a native_db
.
Key points:
- Define an api: 1 model
Person
with 2 versions, source main.rs#L10-L43. - Use
native_db
as a Tauri managed state, source main.rs#L93-L95. - Migrate the database during the app setup, source main.rs#L87-L91.