aboutsummaryrefslogtreecommitdiff
path: root/odb/database.cxx
blob: b9a6d8035d30cd2db81cabec24c55eddd36af816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// file      : odb/database.cxx
// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

#include <odb/database.hxx>

namespace odb
{
  database::
  ~database ()
  {
  }

  unsigned long long database::
  execute (const char* st, std::size_t n)
  {
    if (!transaction::has_current ())
      throw not_in_transaction ();

    connection_type& c (transaction::current ().connection ());
    return c.execute (st, n);
  }
}