blob: ca6c7ccb2e9417bf5e7234241018978bc6ffa00f (
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
|
// file : odb/database.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/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);
}
}
|