LillaTheHun
LillaTheHun

Reputation: 141

How to retrieve data from a SQLite db in Angular?

I'm new to front-end/back-end communication and I was hoping for some guidance on the basic steps to retrieve data from a SQLite db file so that I can populate a page in my angular project. If you know of any resources I could read that would be of use, that would be great, but my knowledge on where/how to get started is zilch.

TL;DR - Need to access data in a SQLite db file and display that in my Angular application, but I'm unsure of where to start/what the best practices would be to accomplish this task.

Upvotes: 0

Views: 2967

Answers (1)

Bhavik
Bhavik

Reputation: 124

If you are planning to use database in browser directly using Angular, I think you need to relay on Browser support for that. I doubt if it allows you to use SQLLite on client side. [You can use SQLLite for sure in backend NodeJs app]

That being said, you can use indexedDB specific APIs. If you want to easily integrate it with your angular app, I would suggest you to refer dexie

Hope this helps!

Upvotes: 2

Related Questions