8 #ifndef TIP_DB_PG_QUERY_HPP_
9 #define TIP_DB_PG_QUERY_HPP_
15 #include <boost/system/error_code.hpp>
71 template <
typename ... T >
93 template <
typename ... T >
103 template <
typename ... T >
105 bind(T
const& ... params);
131 typedef std::vector<byte> params_buffer;
133 typedef std::shared_ptr<impl> pimpl;
139 mutable pimpl pimpl_;
141 template <
typename ... T >
144 T
const& ... params);
150 template <
typename ... T >
153 T
const& ... params);
query & bind()
Mark the query as prepared statement.
Short unique string to refer a database. Signature structure, to pass instead of connection string...
std::shared_ptr< transaction > transaction_ptr
Asynchronous query class.
std::function< void(error::db_error const &) > error_callback
Callback for error handling.
query(dbalias const &alias, std::string const &expression)
Construct a query.
void run_async(query_result_callback const &result, error_callback const &error) const
Start running the query.
void operator()(query_result_callback const &result, error_callback const &error) const
std::vector< oids::type::oid_type > type_oid_sequence
std::function< void(transaction_ptr, resultset, bool) > query_result_callback
Callback for query results.