aboutsummaryrefslogtreecommitdiff
path: root/schema/embedded
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-07-13 11:03:13 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-13 11:03:13 +0200
commite440e73a889c8929730632d62ebc84e32475b549 (patch)
treecefbcd5cac5e14e54c5a482af58e19d5973ea2e0 /schema/embedded
parent292f71768c16e14369c7aea4ef0590b0a741c3bc (diff)
Add PostgreSQL
Diffstat (limited to 'schema/embedded')
-rw-r--r--schema/embedded/database.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/schema/embedded/database.hxx b/schema/embedded/database.hxx
index ab733e2..82441b7 100644
--- a/schema/embedded/database.hxx
+++ b/schema/embedded/database.hxx
@@ -1,4 +1,4 @@
-// file : schema/embedded/database.hxx
+// file : template/database.hxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : not copyrighted - public domain
@@ -20,6 +20,8 @@
# include <odb/mysql/database.hxx>
#elif defined(DATABASE_SQLITE)
# include <odb/sqlite/database.hxx>
+#elif defined(DATABASE_PGSQL)
+# include <odb/pgsql/database.hxx>
#endif
inline std::auto_ptr<odb::database>
@@ -37,6 +39,8 @@ create_database (int& argc, char* argv[])
odb::mysql::database::print_usage (cerr);
#elif defined(DATABASE_SQLITE)
odb::sqlite::database::print_usage (cerr);
+#elif defined(DATABASE_PGSQL)
+ odb::pgsql::database::print_usage (cerr);
#endif
exit (0);
@@ -56,6 +60,8 @@ create_database (int& argc, char* argv[])
schema_catalog::create_schema (*db);
t.commit ();
}
+#elif defined(DATABASE_PGSQL)
+ auto_ptr<database> db (new odb::pgsql::database (argc, argv));
#endif
return db;