pg_async
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Threads and thread safety

pg_async runs all the requests to the database servers in the threads that call db_service::run. db_service static methods are thread safe and can be called from any thread. All requests and their callbacks in a single transaction are guaranteed to run in a single thread.

Warning
A tip::db::pg::transaction object shoudn't be stored and accessed concurrently.