I need to create web application which will select some data from database but for this I do not want to use backend service. I just try to read data from database file in front. I know it's not secure but security is not my priority. I am using Angular 13. For solving this issue I tried to use sql.js library. But problem is about reading db file. I tried to use fs package. But unfortunately browser does not support this. So any suggestion for this? Or is there another way to access db in browser. Thanks.
Asked
Active
Viewed 124 times
0
Elchin Fahradov
- 31
- 2
-
Does this answer your question? [I need a client side browser database. What are my options](https://stackoverflow.com/questions/4777968/i-need-a-client-side-browser-database-what-are-my-options) – StPaulis Apr 14 '22 at 09:54
-
not so much. I need to read data from already exist db – Elchin Fahradov Apr 14 '22 at 10:08
-
Yes but if you read the thread, you will understand that this is not possible. That's a reason that we need server applications. To fetch data from database. You can turn angular to run in the server side, but that's more or less the same with creating a back end application. – StPaulis Apr 14 '22 at 10:10