Could indexdb be used as a database for Tauri apps? #15009
Answered
by
FabianLars
trymeouteh
asked this question in
Q&A
|
Modern browsers have indexdb which is used as a database for PWAs. Is it possible and reliable to use indexdb for a Tauri app on all platforms? And if so, are there any pros and cons to using indexdb in a Tauri app compared to SQLite, MySQL and PostgreSQL? |
Answered by
FabianLars
Feb 27, 2026
Replies: 1 comment
|
there's a very small chance (bigger chance on mobile) that the OS will clear webview data when storage becomes full. Other than that it should be good to use. I'd probably still use sqlite though but i typically also have to access the database from the rust side. mysql and postgres only when i have to connect to remote databases, which i would never do directly from a tauri app if it's not a database manager app 😅 |
0 replies
Answer selected by
trymeouteh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there's a very small chance (bigger chance on mobile) that the OS will clear webview data when storage becomes full. Other than that it should be good to use. I'd probably still use sqlite though but i typically also have to access the database from the rust side. mysql and postgres only when i have to connect to remote databases, which i would never do directly from a tauri app if it's not a database manager app 😅