Database - SQLite

1

I'm developing an application that needs a database, I chose SQLite.

How do I create a database with SQLite and React Native?

As I am new and I have no experience in SQLite I ask you:     

asked by anonymous 25.02.2017 / 04:06

2 answers

2

If you are developing an application using the framework React Native and you want to persist data using SQLite directly, maybe, I say maybe, it's not as interesting as it has to exploit native features of the devices on their particular platforms. If your application is hybrid, this will make it difficult because each platform has its peculiarities. It would be something like reinvent the wheel , as many people say. Mário Quintana says that "laziness is the mother of progress. If man were not lazy to walk, he would not have invented the wheel."

But there are some open source plugins that allow you to manipulate SQLite database using JavaScript. Take a look at these:

If you want to redo the wheel more efficiently, you can base these same plugins and improve or even refactor them.

    
25.02.2017 / 19:50
0

How about taking a look at this page about the AsyncStorage API? link

You can use AsyncStorage to store data in key-value pairs. According to the documentation, the API implementation uses SQLite (or RocksDB) if it is Android.

    
27.02.2017 / 18:17