Navigate back to the homepage

How to create SQLite database at runtime in react native?

Infinitbility
React Native
December 1st, 2021 · 1 min read
How to create SQLite database at runtime in react native?

Hello Friends 👋,

Welcome To Infinitbility! ❤️

React native SQLite storage is one of the most used packages to use SQLite in react native and I have already shared an example to use sqlite with populated database.

Now, in this tutorial, i will share how we can use the SQLite database without adding the .db file in the www directory.

I mean How to create SQLite database at runtime in react native?

when we follow web SQL syntax to connect SQLite database, it will maintain the database in memory.

1var db = SQLte.openDatabase("test.db", "1.0", "Test Database", 200000, () => { console.log("Connected") }, (err) => { console.log(err) });

Note: it will not create any test.db file in the assets folder.

follow below documentation for query examples.

Thanks for reading…

Follow me on Twitter

Join our email list and get notified about new content

No worries, I respect your privacy and I will never abuse your email.

Every week, on Tuesday, you will receive a list of free tutorials I made during the week (I write one every day) and news on other training products I create.

Looking For React Native Tutorial?

we are trying to create the best Tutorial for react native developers.

When you want a daily updates about React Native Tutorial or infinitbility update subscribe to our newsletter.

Read React Native Tutorial

Request New Tutorial or Article on mail [email protected]

Guide book

Guidebook: The Javascript Monorepo

Tutorials

Categories

More articles from Infinitbility

How to check if a json object has a key in typescript?

How to check if a json object has a key in typescript?

Example of check object key exist or not in typesacript.

November 30th, 2021 · 1 min read
How to create a border in react native?

How to create a border in react native?

React Native border example

November 29th, 2021 · 1 min read
© 2020–2022 Infinitbility
About
Link to $https://medium.com/infinitbilityLink to $https://www.facebook.com/InfinitbilityLink to $https://github.com/infinitbilityLink to $https://twitter.com/infinitbilityLink to $https://www.buymeacoffee.com/infinitbilityLink to $mailto:[email protected]