aboutsummaryrefslogtreecommitdiff
path: root/schema/embedded/database.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-11-17 11:44:45 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-17 11:44:45 +0200
commit9616e3e84946c23f64448978d9459d2a25202833 (patch)
tree209fe102c7d73b57ff3d2a4cdf68ad2df705704f /schema/embedded/database.hxx
parent508512b8db199c5bcc1affc237d6eac4e0a4818d (diff)
Add examples for Oracle
Diffstat (limited to 'schema/embedded/database.hxx')
-rw-r--r--schema/embedded/database.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/schema/embedded/database.hxx b/schema/embedded/database.hxx
index 9a2cbed..f1cf1e5 100644
--- a/schema/embedded/database.hxx
+++ b/schema/embedded/database.hxx
@@ -22,6 +22,8 @@
# include <odb/sqlite/database.hxx>
#elif defined(DATABASE_PGSQL)
# include <odb/pgsql/database.hxx>
+#elif defined(DATABASE_ORACLE)
+# include <odb/oracle/database.hxx>
#endif
inline std::auto_ptr<odb::database>
@@ -41,6 +43,8 @@ create_database (int& argc, char* argv[])
odb::sqlite::database::print_usage (cerr);
#elif defined(DATABASE_PGSQL)
odb::pgsql::database::print_usage (cerr);
+#elif defined(DATABASE_ORACLE)
+ odb::oracle::database::print_usage (cerr);
#endif
exit (0);
@@ -54,6 +58,9 @@ create_database (int& argc, char* argv[])
argc, argv, false, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE));
#elif defined(DATABASE_PGSQL)
auto_ptr<database> db (new odb::pgsql::database (argc, argv));
+#elif defined(DATABASE_ORACLE)
+ auto_ptr<database> db (
+ new odb::oracle::database (argc, argv, false, 873, 873));
#endif
return db;