#include <MySQLStatement.h>
◆ MySQLStatement() [1/3]
sptk::MySQLStatement::MySQLStatement |
( |
MySQLConnection * |
connection, |
|
|
String |
sql, |
|
|
bool |
autoPrepare |
|
) |
| |
Constructor
- Parameters
-
connection | Connection*, MySQL connection |
sql | std::string, SQL statement |
autoPrepare | bool, If true then statement is executed as prepared. |
◆ MySQLStatement() [2/3]
◆ MySQLStatement() [3/3]
◆ bindResult()
void sptk::MySQLStatement::bindResult |
( |
FieldList & |
fields | ) |
|
Binds statement result metadata to query fields
- Parameters
-
fields | CFieldList&, query fields (if any) |
◆ close()
void sptk::MySQLStatement::close |
( |
| ) |
|
|
overridevirtual |
◆ dateTimeToMySQLDate()
static void sptk::MySQLStatement::dateTimeToMySQLDate |
( |
MYSQL_TIME & |
mysqlDate, |
|
|
DateTime |
timestamp, |
|
|
VariantDataType |
timeType |
|
) |
| |
|
static |
Translates DateTime to MySQL time
- Parameters
-
mysqlDate | MYSQL_TIME&, MySQL time |
timestamp | DateTime, Timestamp |
timeType | VariantType, Time type, VAR_DATE or VAR_DATETIME |
◆ enumerateParams()
◆ execute()
void sptk::MySQLStatement::execute |
( |
bool |
| ) |
|
|
overridevirtual |
◆ fetch()
void sptk::MySQLStatement::fetch |
( |
| ) |
|
|
overridevirtual |
◆ mySQLTypeToVariantType()
static VariantDataType sptk::MySQLStatement::mySQLTypeToVariantType |
( |
enum_field_types |
mysqlType | ) |
|
|
static |
Translates MySQL native type to CVariant type
- Parameters
-
mysqlType | enum_field_types, MySQL native type |
- Returns
- CVariant type
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ prepare()
void sptk::MySQLStatement::prepare |
( |
const String & |
sql | ) |
const |
Prepares MySQL statement
- Parameters
-
sql | const std::string, statement SQL |
◆ readResultRow()
void sptk::MySQLStatement::readResultRow |
( |
FieldList & |
fields | ) |
|
Fetches statement result metadata to query fields
- Parameters
-
fields | CFieldList&, query fields (if any) |
◆ setParameterValues()
void sptk::MySQLStatement::setParameterValues |
( |
| ) |
|
|
overridevirtual |
◆ variantTypeToMySQLType()
static enum_field_types sptk::MySQLStatement::variantTypeToMySQLType |
( |
VariantDataType |
dataType | ) |
|
|
static |
Translates CVariant type to MySQL native type
- Parameters
-
- Returns
- MySQL native type
The documentation for this class was generated from the following file: