![]() |
VR-Forces Developer's Guide
|
Provides functions to turn a DtVrfDatabaseEvent and it's parameters into an SQL query string.
Static Public Member Functions | |
| static std::string | createTableStatement (const DtVrfDatabaseEvent &event) |
| static std::string | sqliteInsertIgnoreStatement (const DtVrfDatabaseEventVector &events) |
| static std::string | mySqlInsertIgnoreStatement (const DtVrfDatabaseEventVector &event) |
| static std::string | sqliteInsertUpdateStatement (const DtVrfDatabaseEventVector &event) |
| static std::string | mySqlInsertUpdateStatement (const DtVrfDatabaseEventVector &event) |
| static std::string | updateStatement (const DtVrfDatabaseEvent &event) |
Static Protected Member Functions | |
| static std::string | creationString (const DtVrfDatabaseEventParam &p) |
| static std::string | parameterNameString (const DtVrfDatabaseEventParam &p) |
| static std::string | parameterValueString (const DtVrfDatabaseEventParam &p) |
| static std::string | excludedSetString (const DtVrfDatabaseEventParam &p) |
| static bool | appendTableName (DtVrfDatabaseEvent::EventType et, std::string &qry) |
| static bool | appendParameterNames (const DtVrfDatabaseEvent::ParamVector ¶ms, std::string &qry) |
| static bool | appendParameterValues (const DtVrfDatabaseEvent::ParamVector ¶ms, std::string &qry) |
| static bool | appendParameterSetExcluded (const DtVrfDatabaseEvent::ParamVector ¶ms, std::string &qry) |
|
inlinestatic |
Creates an SQL statement to create a table to hold events of this type.
|
inlinestatic |
Creates an SQLite statement to insert multiple database events into the appropriate table, ignoring errors on conflicts. NOTE: Only works if all events have the same event type!
|
inlinestatic |
Creates a MySQL statement to insert multiple database events into the appropriate table, ignoring errors on conflicts. NOTE: Only works if all events have the same event type!
|
inlinestatic |
Creates an SQLite statement to insert multiple database events into the appropriate table, updating the existing entry on conflicts. NOTE: Only works if all events have the same event type!
|
inlinestatic |
Creates a MySQL statement to insert multiple database events into the appropriate table, updating the existing entry on conflicts. NOTE: Only works if all events have the same event type!
|
inlinestatic |
Creates an SQL query to update an existing database event in the appropriate table. Requires the event to have at least one parameter designated as a primary key.
|
inlinestaticprotected |
Creates a string to be used by createTableStatement() when constructing a table to specify the correct name and type for the given parameter.
|
inlinestaticprotected |
Creates a string to be used by an insert query when inserting an event to specify the correct name for the given parameter.
|
inlinestaticprotected |
Creates a string to be used by an insert query when inserting an event to specify the correct value for the given parameter.
|
inlinestaticprotected |
Creates a string to be used by an insert query needs to update a parameter when a duplicate entry is found.
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |