Common ODB Runtime Library
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
odb
schema-catalog-impl.hxx
Go to the documentation of this file.
1
// file : odb/schema-catalog-impl.hxx
2
// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
3
// license : GNU GPL v2; see accompanying LICENSE file
4
5
#ifndef ODB_SCHEMA_CATALOG_IMPL_HXX
6
#define ODB_SCHEMA_CATALOG_IMPL_HXX
7
8
#include <
odb/pre.hxx
>
9
10
#include <cstddef>
11
12
#include <
odb/forward.hxx
>
// schema_version
13
14
#include <odb/details/export.hxx>
15
16
namespace
odb
17
{
18
struct
schema_catalog_impl;
19
20
// Translation unit initializer.
21
//
22
struct
LIBODB_EXPORT
schema_catalog_init
23
{
24
static
schema_catalog_impl*
catalog
;
25
static
std::size_t
count
;
26
27
schema_catalog_init
();
28
~
schema_catalog_init
();
29
};
30
31
static
const
schema_catalog_init
schema_catalog_init_;
32
33
// Catalog entry registration.
34
//
35
struct
LIBODB_EXPORT
schema_catalog_create_entry
36
{
37
schema_catalog_create_entry
(
38
database_id
,
39
const
char
* name,
40
bool
(*create_function) (
database
&,
unsigned
short
pass,
bool
drop));
41
};
42
43
struct
LIBODB_EXPORT
schema_catalog_migrate_entry
44
{
45
schema_catalog_migrate_entry
(
46
database_id
,
47
const
char
* name,
48
schema_version
,
49
bool
(*migrate_function) (
database
&,
unsigned
short
pass,
bool
pre));
50
};
51
}
52
53
#include <
odb/post.hxx
>
54
55
#endif // ODB_SCHEMA_CATALOG_IMPL_HXX
odb::schema_catalog_migrate_entry
Definition:
schema-catalog-impl.hxx:43
odb::schema_catalog_init
Definition:
schema-catalog-impl.hxx:22
pre.hxx
odb::schema_catalog_init::count
static std::size_t count
Definition:
schema-catalog-impl.hxx:25
odb::schema_version
unsigned long long schema_version
Definition:
forward.hxx:30
odb::database
Definition:
database.hxx:38
odb::database_id
database_id
Definition:
forward.hxx:74
odb::schema_catalog_init::catalog
static schema_catalog_impl * catalog
Definition:
schema-catalog-impl.hxx:24
odb::schema_catalog_create_entry
Definition:
schema-catalog-impl.hxx:35
forward.hxx
post.hxx
Generated on Fri Jul 25 2014 07:57:01 for Common ODB Runtime Library by
1.8.7