gz/transport/log/SqlStatement.hh
Go to the documentation of this file.
A class which contains a SQL statement parameter. SqlParameter can be useful for keeping SQL queries ...
Definition: gz/transport/log/SqlStatement.hh:41
const int64_t * QueryInteger() const
Get the integer value of this parameter.
SqlParameter(const std::string &_string)
Construct string parameter.
SqlParameter()
void Set(const std::string &_text)
Set this parameter to a text string.
SqlParameter(int64_t _integer)
Construct integer parameter.
const std::string * QueryText() const
Get the text value of this paramter.
SqlParameter(const SqlParameter &_other)
Copy constructor.
SqlParameter(double _real)
Construct real parameter.
ParamType
An enum to indicate which type of parameter this is.
Definition: gz/transport/log/SqlStatement.hh:44
void Set(double _real)
Set this parameter to a floating-point type.
void Set(std::nullptr_t _np)
Set this parameter to a NULL_TYPE.
SqlParameter & operator=(SqlParameter &&_other)
Move assignment operator.
SqlParameter(std::nullptr_t)
Construct NULL parameter.
SqlParameter & operator=(const SqlParameter &_other)
Copy assignment operator.
void Set(int64_t _integer)
Set this parameter to an INTEGER type.
SqlParameter(SqlParameter &&_other)
Move constructor.
const double * QueryReal() const
Get the floating-point value of this parameter.
Definition: gz/transport/log/Batch.hh:28
A statement for a SQL query. These are generated by the QueryOptions class to control how messages ge...
Definition: gz/transport/log/SqlStatement.hh:150
std::vector< SqlParameter > parameters
Parameters for the statement.
Definition: gz/transport/log/SqlStatement.hh:161
void Append(const SqlStatement &_other)
Append another SQL statement onto the end of this one. _other.statement will be added to the end of t...
std::string statement
Text of the statement.
Definition: gz/transport/log/SqlStatement.hh:158