Using SQLite
Databases are advanced data repositories known as relational database management systems. SQLite is an embedded database that can be used in your LiveCode mobile apps, giving you tremendous capability to store, retrieve, and manipulate data. Unlike MySQL databases, SQLite databases do not require a server. In this recipe, we will create a mobile app that uses five SQLite functions:
Connect to a database.
Add a table to the database.
Add data to the database table.
Retrieve data from the database.
Close the database.
How to do it...
Use the following steps to create a mobile app that instantiates a SQLite database and add and retrieve information from it:
Create a new main stack in LiveCode.
Set the background color of the main card to black.
Open the Standalone Application Settings dialog box and click on the iOS tab.
Check the SQLite checkbox by navigating to Basic Application Settings | Externals. See the following screenshot for reference:
Open the Standalone Application Settings dialog...