From 9616e3e84946c23f64448978d9459d2a25202833 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 17 Nov 2011 11:44:45 +0200 Subject: Add examples for Oracle --- relationship/database.hxx | 7 +++++++ relationship/makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'relationship') diff --git a/relationship/database.hxx b/relationship/database.hxx index eb55885..dd4a62f 100644 --- a/relationship/database.hxx +++ b/relationship/database.hxx @@ -25,6 +25,8 @@ # include #elif defined(DATABASE_PGSQL) # include +#elif defined(DATABASE_ORACLE) +# include #endif inline std::auto_ptr @@ -44,6 +46,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); @@ -73,6 +77,9 @@ create_database (int& argc, char* argv[]) } #elif defined(DATABASE_PGSQL) auto_ptr db (new odb::pgsql::database (argc, argv)); +#elif defined(DATABASE_ORACLE) + auto_ptr db ( + new odb::oracle::database (argc, argv, false, 873, 873)); #endif return db; diff --git a/relationship/makefile b/relationship/makefile index 96440be..e8715ef 100644 --- a/relationship/makefile +++ b/relationship/makefile @@ -48,7 +48,7 @@ $(gen): $(odb) $(gen): odb := $(odb) $(gen) $(dist): export odb_options += --database $(db_id) --generate-query \ --generate-schema --default-pointer std::tr1::shared_ptr \ ---table-prefix relationship_ +--table-prefix r_ $(gen): cpp_options := -I$(src_base) $(gen): $(odb.l.cpp-options) -- cgit v1.1