summaryrefslogtreecommitdiff
path: root/odb/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-06-04 16:29:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-06-04 16:29:02 +0200
commitbb76e9388009ed0bb2512034f8cd48a7d19aabb3 (patch)
tree0b43ebff1c36a35bf7cf66c670f04707d4334e38 /odb/context.hxx
parent633f9c5ac574750799efdfe5d1eb31db40a267da (diff)
Next chunk of functionality
Diffstat (limited to 'odb/context.hxx')
-rw-r--r--odb/context.hxx15
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.
//