diff options
Diffstat (limited to 'odb/schema-catalog.hxx')
-rw-r--r-- | odb/schema-catalog.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/schema-catalog.hxx b/odb/schema-catalog.hxx index 861c3d0..0048644 100644 --- a/odb/schema-catalog.hxx +++ b/odb/schema-catalog.hxx @@ -20,6 +20,15 @@ namespace odb public: static void create_schema (database&, const std::string& name = ""); + + static bool + exists (database_id, const std::string& name); + + static bool + exists (const database& db, const std::string& name) + { + return exists (db.id (), name); + } }; namespace common |