0

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.

  • If I have a SQLite db file, is it best to convert it to json first and then retrieve that file from Angular?
  • Can I work directly with the SQLite db file in Angular and make use of the data that way?

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.

1

1 Answer 1

2

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!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.