|
lintel 0.2.0
|
#include <Statement.h>
Public Member Functions | |
| Statement (const Connection &connection) | |
| std::shared_ptr< Result > | execute (const std::string &query) |
| std::shared_ptr< Result > | execute (const std::string &query, const std::vector< std::string > ¶ms) |
Friends | |
| class | db::Statement |
| class | db::Cursor |
Executes SQL statements on a PostgreSQL connection.
|
explicit |
Constructs a Statement bound to the given connection.
| connection | the PostgreSQL connection |
Executes a plain SQL query.
| query | the SQL query string |
| std::shared_ptr< Result > lintel::postgresql::Statement::execute | ( | const std::string & | query, |
| const std::vector< std::string > & | params | ||
| ) |
Executes a parameterized SQL query.
| query | the SQL query with placeholders |
| params | the parameter values as strings |
|
friend |
|
friend |