29#include <sptk5/db/QueryParameterList.h>
36template<
class Connection,
class Statement>
40 Connection* connection()
const
45 void statement(Statement*
stmt)
50 Statement* statement()
const
60 : m_connection(connection)
83 queryParams.
enumerate(m_enumeratedParams);
86 for (
auto parameter: m_enumeratedParams)
88 if (parameter->isOutput())
98 return m_enumeratedParams;
178 Connection* m_connection {
nullptr};
179 Statement* m_statement {
nullptr};
Definition: DatabaseStatement.h:38
virtual void enumerateParams(QueryParameterList &queryParams)
Definition: DatabaseStatement.h:81
Statement * stmt() const
Definition: DatabaseStatement.h:72
virtual void execute(bool inTransaction)=0
CParamVector & enumeratedParams()
Definition: DatabaseStatement.h:96
virtual ~DatabaseStatement()=default
size_t outputParameterCount() const
Definition: DatabaseStatement.h:104
DatabaseStatement(Connection *connection)
Definition: DatabaseStatement.h:59
virtual void setParameterValues()=0
bool eof() const
Definition: DatabaseStatement.h:133
unsigned colCount() const
Definition: DatabaseStatement.h:141
Definition: QueryParameterList.h:57
void enumerate(CParamVector ¶ms) const
std::vector< SQueryParameter > CParamVector
Definition: QueryParameterList.h:47
Definition: DatabaseStatement.h:150
unsigned outputParameterCount
Definition: DatabaseStatement.h:169
bool transaction
Definition: DatabaseStatement.h:164
unsigned columnCount
Definition: DatabaseStatement.h:154
bool eof
Definition: DatabaseStatement.h:159