aboutsummaryrefslogtreecommitdiff
path: root/libcommon/common/common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-28 11:21:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-28 11:21:46 +0200
commitb6f2b4e1e924965d55e656992a48cc3cd19e64a2 (patch)
tree79889e297996eaf92a57da8380c54f1fcfc7fa7d /libcommon/common/common.hxx
parent6dd8138b765b8533958bc23d39e95a17377d4f75 (diff)
Add schema creation flag to create_database()
Diffstat (limited to 'libcommon/common/common.hxx')
-rw-r--r--libcommon/common/common.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcommon/common/common.hxx b/libcommon/common/common.hxx
index 23e9d80..6ace845 100644
--- a/libcommon/common/common.hxx
+++ b/libcommon/common/common.hxx
@@ -16,7 +16,10 @@
#include <common/export.hxx>
LIBCOMMON_EXPORT std::auto_ptr<odb::database>
-create_database (int& argc, char* argv[], std::size_t max_connections = 0);
+create_database (int& argc,
+ char* argv[],
+ bool create_schema = true,
+ std::size_t max_connections = 0);
// This function returns an accurate result only if the result iterator
// hasn't been advanced.