diff options
Diffstat (limited to 'odb/context.hxx')
-rw-r--r-- | odb/context.hxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/odb/context.hxx b/odb/context.hxx index 057b821..064b0d5 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -10,14 +10,17 @@ #include <string> #include <ostream> #include <cstddef> // std::size_t +#include <iostream> #include <cutl/shared-ptr.hxx> +#include <odb/database.hxx> #include <odb/options.hxx> #include <odb/semantics.hxx> #include <odb/traversal.hxx> using std::endl; +using std::cerr; class generation_failed {}; @@ -28,6 +31,18 @@ public: typedef std::string string; typedef ::options options_type; + // Database names and types. + // +public: + string + table_name (semantics::type&) const; + + string + column_name (semantics::data_member&) const; + + string + db_type (semantics::data_member&) const; + public: // Escape C++ keywords, reserved names, and illegal characters. // |