aboutsummaryrefslogtreecommitdiff
path: root/odb/tracer/connection.cxx
blob: 54c233c29b39495b4945078607f7d8384c232ff0 (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
27
28
29
30
31
32
33
// file      : odb/tracer/connection.cxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

#include <odb/transaction.hxx>

#include <odb/tracer/database.hxx>
#include <odb/tracer/connection.hxx>

namespace odb
{
  namespace tracer
  {
    connection::
    connection (database_type& db)
        : odb::connection (db)
    {
    }

    unsigned long long connection::
    execute (const char*, std::size_t)
    {
      return 0;
    }

    transaction_impl* connection::
    begin ()
    {
      return new transaction_impl (connection_ptr (inc_ref (this)));
    }
  }
}