shlogg · Early preview
Huakun Shen @huakunshen

Tauri SQLite Proxy With Drizzle ORM

Tauri v2 lets you use drizzle to control sqlite DB without a sidecar. Drizzle proxy translates frontend queries to backend execution, making it easy to use TypeScript ORM in Tauri apps.

GitHub: https://github.com/HuakunShen/tauri-demo/tree/master/examples/drizzle-sqlite-proxy

This demo let you use drizzle to control your sqlite DB in a Tauri app, without any sidecar.
This is a Tauri v2 reproduction for the archived repo https://github.com/tdwesten/tauri-drizzle-sqlite-proxy-demo

Tauri's backend is in Rust, so I always thought the only way to use sqlite ORM in a Tauri app is with projects like diesel or prisma-client-rust, which could be hard because they are in rust.
What is even harder is sqlite db encryption. Both of the 2 ORMs don't support cipher encryption, thus I had...