ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
context Class Reference

Context for the operations on a postgres database. More...

#include <context.hpp>

Collaboration diagram for context:
Collaboration graph

Public Types

using connection_type = sqlgen::postgres::Connection
 
using connection_pool_type = sqlgen::Result< sqlgen::ConnectionPool< connection_type > >
 
using single_connection_type = sqlgen::Result< rfl::Ref< connection_type > >
 

Public Member Functions

 context (connection_pool_type connection_pool, single_connection_type single_connection, sqlgen::postgres::Credentials credentials)
 
connection_pool_type connection_pool ()
 
single_connection_type single_connection ()
 
const sqlgen::postgres::Credentials & credentials () const
 

Detailed Description

Context for the operations on a postgres database.