Library: Data/MySQL
Package: MySQL
Header: Poco/Data/MySQL/StatementExecutor.h
MySQL statement executor.
Member Functions: bindParams, bindResult, execute, fetch, fetchColumn, operator MYSQL_STMT *, prepare, state
explicit StatementExecutor(
MYSQL * mysql
);
Creates the StatementExecutor.
Destroys the StatementExecutor.
void bindParams(
MYSQL_BIND * params,
size_t count
);
Binds the params.
void bindResult(
MYSQL_BIND * result
);
Binds result.
void execute();
Executes the statement.
bool fetch();
Fetches the data.
bool fetchColumn(
size_t n,
MYSQL_BIND * bind
);
Fetches the column.
operator MYSQL_STMT * ();
Cast operator to native handle type.
void prepare(
const std::string & query
);
Prepares the statement for execution.
int state() const;
Returns the current state.