https://github.com/bpevs/tauri_diesel_sqlite_example
Example usage of Tauri v2 + Diesel + Sqlite
https://github.com/bpevs/tauri_diesel_sqlite_example
Last synced: 8 months ago
JSON representation
Example usage of Tauri v2 + Diesel + Sqlite
- Host: GitHub
- URL: https://github.com/bpevs/tauri_diesel_sqlite_example
- Owner: bpevs
- Created: 2024-03-16T19:00:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-04T02:09:11.000Z (about 2 years ago)
- Last Synced: 2025-03-01T11:53:59.779Z (over 1 year ago)
- Language: Rust
- Size: 1.15 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tauri Diesel Example
Uses Tauri v2 Beta
Vanilla js/html frontend with no build step.
`cargo tauri build` should work without any modifications.
To use `cargo tauri dev`, in `src-tauri/tauri-conf.json`, replace `build.beforeDevCommand` with your favorite static server, serving src-www.
Start app with `cargo tauri dev`

# src-db
Commands used to build `src-db` into its current state (all files not generated by these commands was hand-added):
- `cd src-db`
- `diesel setup`
- `diesel migration generate initial` (where `initial` is the name of the migration)
- *add migration code*
- `diesel migration run`
Other useful commands to know (run in the src-db dir):
- `cargo test`
- `diesel migration redo -n SOME_INT_HERE` if you make changes
Other Notes:
- Notice `.env` in the src-db dir is used for tests. For the app, db location is defined in setup