Skip to content

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;)

Functions

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")

Clone this wiki locally