From 63295f6e051e75cf07cb6212a2631df8eb8a90c4 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Mon, 5 Sep 2011 12:10:45 +0200 Subject: Add database, connection, connection-factory, and transaction support --- odb/oracle/database.ixx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 odb/oracle/database.ixx (limited to 'odb/oracle/database.ixx') diff --git a/odb/oracle/database.ixx b/odb/oracle/database.ixx new file mode 100644 index 0000000..763ff90 --- /dev/null +++ b/odb/oracle/database.ixx @@ -0,0 +1,20 @@ +// file : odb/oracle/database.ixx +// author : Constantin Michael +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : ODB NCUEL; see accompanying LICENSE file + +namespace odb +{ + namespace oracle + { + inline connection_ptr database:: + connection () + { + // Go through the virtual connection_() function instead of + // directly to allow overriding. + // + return connection_ptr ( + static_cast (connection_ ())); + } + } +} -- cgit v1.1