32 using connection_type = sqlgen::postgres::Connection;
33 using connection_pool_type = sqlgen::Result<
34 sqlgen::ConnectionPool<connection_type>>;
36 explicit context(connection_pool_type connection_pool,
37 sqlgen::postgres::Credentials credentials)
38 : connection_pool_(std::move(connection_pool)),
39 credentials_(std::move(credentials)) {}
41 connection_pool_type connection_pool() {
return connection_pool_; }
42 const sqlgen::postgres::Credentials& credentials()
const {
return credentials_; }
45 connection_pool_type connection_pool_;
46 const sqlgen::postgres::Credentials credentials_;