aboutsummaryrefslogtreecommitdiff
path: root/composite
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 /composite
parent508512b8db199c5bcc1affc237d6eac4e0a4818d (diff)
Add examples for Oracle
Diffstat (limited to 'composite')
-rw-r--r--composite/database.hxx7
-rw-r--r--composite/makefile2
2 files changed, 8 insertions, 1 deletions
diff --git a/composite/database.hxx b/composite/database.hxx
index 2a13381..dafdd56 100644
--- a/composite/database.hxx
+++ b/composite/database.hxx
@@ -25,6 +25,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>
@@ -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<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;
diff --git a/composite/makefile b/composite/makefile
index 8a9c5fc..af78ec7 100644
--- a/composite/makefile
+++ b/composite/makefile
@@ -47,7 +47,7 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix composite_
+--generate-query --table-prefix c_
$(gen): cpp_options := -I$(src_base)
$(gen): $(odb.l.cpp-options)