blob: b9252d33a2af6b63a4a098116e60b3c12972738b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// file : odb/schema-catalog.hxx
// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_SCHEMA_CATALOG_HXX
#define ODB_SCHEMA_CATALOG_HXX
#include <odb/pre.hxx>
#include <string>
#include <odb/forward.hxx> // odb::core
#include <odb/details/export.hxx>
namespace odb
{
class LIBODB_EXPORT schema_catalog
{
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
{
using odb::schema_catalog;
}
}
#include <odb/post.hxx>
#endif // ODB_SCHEMA_CATALOG_HXX
|