SpikeStream Library
0.2
|
#include <DatabaseDao.h>
Public Member Functions | |
DatabaseDao (const DBInfo &dbInfo) | |
DatabaseDao () | |
virtual | ~DatabaseDao () |
void | connectToDatabase (const DBInfo &dbInfo) |
void | executeSQLFile (const QString &fileName) |
void | executeSQLFile (const QString &dbName, const QString &fileName) |
QList< QString > | getDatabaseNames () |
Class for carrying out tasks that are not necessarily specific to a single database.
Definition at line 15 of file DatabaseDao.h.
DatabaseDao::DatabaseDao | ( | const DBInfo & | dbInfo | ) |
Constructor. DBInfo is stored by AbstractDao
Definition at line 16 of file DatabaseDao.cpp.
Empty constructor, used to test connection to database
Definition at line 21 of file DatabaseDao.cpp.
DatabaseDao::~DatabaseDao | ( | ) | [virtual] |
Destructor
Definition at line 26 of file DatabaseDao.cpp.
void DatabaseDao::connectToDatabase | ( | const DBInfo & | dbInfo | ) |
Allows manual connection to database
Definition at line 36 of file DatabaseDao.cpp.
void DatabaseDao::executeSQLFile | ( | const QString & | fileName | ) |
Executes the contents of the supplied file
Definition at line 58 of file DatabaseDao.cpp.
void DatabaseDao::executeSQLFile | ( | const QString & | dbName, |
const QString & | fileName | ||
) |
Executes the contents of the supplied file on the specified database
Definition at line 76 of file DatabaseDao.cpp.
QList< QString > DatabaseDao::getDatabaseNames | ( | ) |
Returns a list of names of the current databases
Definition at line 46 of file DatabaseDao.cpp.