Class which provides an interface to a SQLite database.
More...
#include <data_access_object.h>
|
| | DataAccessObject (const std::string &db_name) |
| | Constructor for the DataAccessObject class.
|
| |
| std::vector< std::string > | executeQuery (const std::string &query) |
| | Executes a query and returns the results as a vector of strings.
|
| |
|
|
static int | callback (void *data, int argc, char **argv, char **azColName) |
| |
Class which provides an interface to a SQLite database.
Definition at line 25 of file data_access_object.h.
◆ DataAccessObject()
| DataAccessObject::DataAccessObject |
( |
const std::string & | db_name | ) |
|
|
explicit |
Constructor for the DataAccessObject class.
- Parameters
-
| db_name | The name of the database. |
◆ executeQuery()
| std::vector< std::string > DataAccessObject::executeQuery |
( |
const std::string & | query | ) |
|
Executes a query and returns the results as a vector of strings.
- Parameters
-
| query | The query to execute. |
- Returns
- A vector of strings containing the results of the query.
◆ db
| sqlite3* DataAccessObject::db {} |
|
private |
The documentation for this class was generated from the following file: