PostgreSQL implementation of the Connection interface.
Represents a prepared statement in PostgreSQL.
ConnectionResult< result::ResultSet > execute(const std::vector< std::string > ¶ms={})
Execute the prepared statement with parameters.
PostgreSQLStatement(const PostgreSQLStatement &)=delete
~PostgreSQLStatement()
Destructor that deallocates the prepared statement.
PostgreSQLStatement(PostgreSQLStatement &&) noexcept
bool is_valid() const
Check if the statement is still valid.
PostgreSQLStatement(PostgreSQLConnection &connection, std::string name, std::string sql, int param_count)
Constructor.
ConnectionResult< result::ResultSet > execute_typed(Args &&... args)
Execute the prepared statement with typed parameters.
PostgreSQLStatement & operator=(const PostgreSQLStatement &)=delete
const std::string & name() const
Get the name of the prepared statement.
int param_count() const
Get the number of parameters.
const std::string & sql() const
Get the SQL query text.