diff options
Diffstat (limited to 'odb-examples/mapping/traits.hxx')
-rw-r--r-- | odb-examples/mapping/traits.hxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/odb-examples/mapping/traits.hxx b/odb-examples/mapping/traits.hxx new file mode 100644 index 0000000..533b2e3 --- /dev/null +++ b/odb-examples/mapping/traits.hxx @@ -0,0 +1,23 @@ +// file : mapping/traits.hxx +// copyright : not copyrighted - public domain + +#ifndef TRAITS_HXX +#define TRAITS_HXX + +// Include one of the database system-specific traits implementations. +// +#if defined(DATABASE_MYSQL) +# include "traits-mysql.hxx" +#elif defined(DATABASE_SQLITE) +# include "traits-sqlite.hxx" +#elif defined(DATABASE_PGSQL) +# include "traits-pgsql.hxx" +#elif defined(DATABASE_ORACLE) +# include "traits-oracle.hxx" +#elif defined(DATABASE_MSSQL) +# include "traits-mssql.hxx" +#else +# error unknown database; did you forget to define the DATABASE_* macros? +#endif + +#endif // TRAITS_HXX |