From e440e73a889c8929730632d62ebc84e32475b549 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Wed, 13 Jul 2011 11:03:13 +0200 Subject: Add PostgreSQL --- template/database.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'template') diff --git a/template/database.hxx b/template/database.hxx index 231dfcc..fe815e9 100644 --- a/template/database.hxx +++ b/template/database.hxx @@ -22,6 +22,8 @@ # include # include # include +#elif defined(DATABASE_PGSQL) +# include #endif inline std::auto_ptr @@ -39,6 +41,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); @@ -58,6 +62,8 @@ create_database (int& argc, char* argv[]) schema_catalog::create_schema (*db); t.commit (); } +#elif defined(DATABASE_PGSQL) + auto_ptr db (new odb::pgsql::database (argc, argv)); #endif return db; -- cgit v1.1