8 #ifndef TIP_DB_PG_DETAIL_CONNECTION_LOCK_HPP_
9 #define TIP_DB_PG_DETAIL_CONNECTION_LOCK_HPP_
18 class basic_connection;
29 class transaction :
public std::enable_shared_from_this< transaction > {
50 return connection_.get();
55 return connection_.get();
61 return connection_.get();
66 return connection_.get();
86 std::vector< byte > params_buffer,
std::shared_ptr< basic_connection > connection_ptr
bool in_transaction() const
Short unique string to refer a database. Signature structure, to pass instead of connection string...
dbalias const & alias() const
Asynchronous query class.
void execute(std::string const &query, query_result_callback, query_error_callback)
basic_connection const * const_pointer
std::shared_ptr< basic_connection > connection_ptr
basic_connection * pointer
An error generated by the PostgreSQL server when executing a query.
std::function< void(error::query_error const &) > query_error_callback
Callback for a query error.
transaction(connection_ptr)
std::vector< oids::type::oid_type > type_oid_sequence
std::function< void(transaction_ptr, resultset, bool) > query_result_callback
Callback for query results.
transaction & operator=(transaction const &)=delete