Ola
Download
Part 1 is here.
At some stage we explored how one can distribute / embed SQLite database on their BANano app. These databases are mainly for read only access purposes where one just wants to display data.
Here we explore part 2 of the tutorial, however now made into a library. This does not depend on PHP but just two js libs, sql.js and filesave.js.
We are logging everything the demo does to console.log.
In this exercise, we open an existing database. Whatever changes we make to it will not be persisted, unless of course we download the file. We might even be able to use this to backup a BANanoSQL database.
1. We will open the database. Ensure the database is loaded under your Files tab.
2. We will create a table called users with auto increment fields.
3. We will add some records to the users table.
4. We will select and view all records from the users table.
5. We will update an existing record.
6. We will delete an existing record
We will explore how we can create an in-memory db and then backup an existing BANanoSQL db to it and then download the content.
Ta!
Download
Part 1 is here.
At some stage we explored how one can distribute / embed SQLite database on their BANano app. These databases are mainly for read only access purposes where one just wants to display data.
Here we explore part 2 of the tutorial, however now made into a library. This does not depend on PHP but just two js libs, sql.js and filesave.js.
We are logging everything the demo does to console.log.
In this exercise, we open an existing database. Whatever changes we make to it will not be persisted, unless of course we download the file. We might even be able to use this to backup a BANanoSQL database.
1. We will open the database. Ensure the database is loaded under your Files tab.
2. We will create a table called users with auto increment fields.
3. We will add some records to the users table.
4. We will select and view all records from the users table.
5. We will update an existing record.
6. We will delete an existing record
We will explore how we can create an in-memory db and then backup an existing BANanoSQL db to it and then download the content.
Ta!
Last edited: