diff options
Diffstat (limited to 'odb/tracer/connection.hxx')
-rw-r--r-- | odb/tracer/connection.hxx | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/odb/tracer/connection.hxx b/odb/tracer/connection.hxx new file mode 100644 index 0000000..743bf92 --- /dev/null +++ b/odb/tracer/connection.hxx @@ -0,0 +1,44 @@ +// file : odb/tracer/connection.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_TRACER_CONNECTION_HXX +#define ODB_TRACER_CONNECTION_HXX + +#include <odb/pre.hxx> + +#include <odb/connection.hxx> +#include <odb/details/shared-ptr.hxx> + +#include <odb/tracer/transaction-impl.hxx> +#include <odb/tracer/details/export.hxx> + +namespace odb +{ + namespace tracer + { + class database; + + class connection; + typedef details::shared_ptr<connection> connection_ptr; + + class LIBODB_TRACER_EXPORT connection: public odb::connection + { + public: + typedef tracer::database database_type; + + connection (database_type&); + + virtual unsigned long long + execute (const char* statement, std::size_t length); + + virtual transaction_impl* + begin (); + }; + } +} + +#include <odb/post.hxx> + +#endif // ODB_TRACER_CONNECTION_HXX |