diff options
Diffstat (limited to 'odb/pgsql/database.hxx')
-rw-r--r-- | odb/pgsql/database.hxx | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/odb/pgsql/database.hxx b/odb/pgsql/database.hxx index b4917cc..d3d8f7d 100644 --- a/odb/pgsql/database.hxx +++ b/odb/pgsql/database.hxx @@ -20,7 +20,6 @@ #include <odb/pgsql/forward.hxx> #include <odb/pgsql/connection.hxx> #include <odb/pgsql/connection-factory.hxx> -#include <odb/pgsql/transaction-impl.hxx> #include <odb/pgsql/details/export.hxx> @@ -28,12 +27,11 @@ namespace odb { namespace pgsql { + class transaction_impl; + class LIBODB_PGSQL_EXPORT database: public odb::database { public: - typedef pgsql::connection connection_type; - - public: database (const std::string& user, const std::string& password, const std::string& db, @@ -82,23 +80,24 @@ namespace odb static void print_usage (std::ostream&); + // Transactions. + // public: - using odb::database::execute; - virtual unsigned long long - execute (const char* statement, std::size_t length); - - public: - virtual transaction_impl* + transaction_impl* begin (); public: - details::shared_ptr<connection_type> + connection_ptr connection (); public: virtual ~database (); + protected: + virtual odb::connection* + connection_ (); + public: const std::string& user () const |