Is there any possibility to connect PWA desktop app with sqlite database?

1.4k Views Asked by At

I have created PWA application. As my requirement says, my PWA application should work for both online and offline as of now online i have done but facing problem with offline because i should not use service worker or any browser level storage. I need to use some local database i have chosen sqlite but not getting proper documentation to connect PWA app with sqlite.

Thanks in advance.

1

There are 1 best solutions below

0
yosi madsu On

Possible duplicate of SQLite database in PWA app.

I was looking the same thing for developing Blazor PWA, but since the PWA is basically a web content and runs on browser, there is no way to access local file directly. Even WebAssembly won't help as it has security concern. But if you did, the database files will be easily erased when the browser clears the cache or temporary files because the browser designed that way.