-
Notifications
You must be signed in to change notification settings - Fork 1
Working with the Database
Luke Pring edited this page Mar 19, 2025
·
12 revisions
To access data stored in the database, the VMSDatabase class.
An instance of this class is already initialised at the top of the main.cpp file. (VMSDatabase VMSDatabase;)
| Function Name | Example | Available |
|---|---|---|
| getData(table) | VMSDatabase.getData("pets"); |
✅ |
| addRecord(table, data) | VMSDatabase.addRecord("pets", {"Bob", "Pug", "3", "Has asthma", "1", "1"}); |
❌ |
| deleteRecord(table, id) | VMSDatabase.deleteRecord("pets", "1") |
❌ |
By Luke Pring and Jack Turner for the Software Development 2 module at University of Roehampton, London.