Offers a database statement catalog that will be used by the database infrastructure to manage reusable SQL statement definitions. More...
#include <DBStatementCatalog.h>
Static Public Member Functions | |
static void | init (string pPath) |
Initializes the static instance of the catalog. | |
static void | destroy () |
Destroys and releases the static instance of the catalog. | |
static string & | getStatementRef (string pStatementName) |
Given a statement name, that corresponds with the name for a database sql file without the ".sql" suffix, returns its content. | |
static void | reload () |
Reloads the complete sql catalog. | |
Static Public Attributes | |
static DBStatementCatalog * | aInstance = nullptr |
Offers a database statement catalog that will be used by the database infrastructure to manage reusable SQL statement definitions.
Take into consideration that only one catalog can exist in the life of an application because it is managed as an static instance.
Definition at line 44 of file DBStatementCatalog.h.
|
inlinestatic |
Destroys and releases the static instance of the catalog.
Definition at line 85 of file DBStatementCatalog.h.
Referenced by HSEPData::DB::~DB().
|
inlinestatic |
Given a statement name, that corresponds with the name for a database sql file without the ".sql" suffix, returns its content.
pStatementName |
Definition at line 98 of file DBStatementCatalog.h.
|
inlinestatic |
Initializes the static instance of the catalog.
pPath | Where to read the SQL files. |
Definition at line 77 of file DBStatementCatalog.h.
Referenced by HSEPData::DB::DB().
|
inlinestatic |
Reloads the complete sql catalog.
Definition at line 110 of file DBStatementCatalog.h.
|
static |
Definition at line 71 of file DBStatementCatalog.h.