aboutsummaryrefslogtreecommitdiff
path: root/odb/database.cxx
blob: 0a20689df5555ad64dd0e73bf0409f3ddfa15e1c (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-2011 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);
  }
}