|
lintel 0.2.0
|
#include <Statement.h>
Public Member Functions | |
| Statement (const Connection &connection) | |
| Result | execute (const std::string &query) |
| Result | execute (const std::string &query, const db::ParameterBuilder &builder) |
| Cursor | executeCursor (const std::string &query) |
| Cursor | executeCursor (const std::string &query, const db::ParameterBuilder &builder) |
Unified statement execution wrapping PostgreSQL or SQLite statements.
|
explicit |
Constructs a Statement bound to the given connection.
| connection | the database connection |
Executes a plain SQL query.
| query | the SQL query string |
| Result lintel::db::Statement::execute | ( | const std::string & | query, |
| const db::ParameterBuilder & | builder | ||
| ) |
Executes a parameterized SQL query.
| query | the SQL query string with placeholders |
| builder | the parameter builder containing parameter values |
Executes a plain SQL query as a streaming cursor.
| query | the SQL query string |
| Cursor lintel::db::Statement::executeCursor | ( | const std::string & | query, |
| const db::ParameterBuilder & | builder | ||
| ) |
Executes a parameterized SQL query as a streaming cursor.
| query | the SQL query string with placeholders |
| builder | the parameter builder containing parameter values |