aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/database.ixx
blob: 467f7655cae2c0fd3e82769589e7125cfac5b0c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// file      : odb/pgsql/database.ixx
// author    : Constantin Michael <constantin@codesynthesis.com>
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

namespace odb
{
  namespace pgsql
  {
    inline connection_ptr database::
    connection ()
    {
      // Go through the virtual connection_() function instead of
      // directly to allow overriding.
      //
      return connection_ptr (
        static_cast<pgsql::connection*> (connection_ ()));
    }

    inline transaction_impl* database::
    begin ()
    {
      return connection ()->begin ();
    }
  }
}