aboutsummaryrefslogtreecommitdiff
path: root/odb/sql-token.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-14 16:36:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-21 15:40:00 +0200
commitf14743ef28248ea8a8ad9bae1c7c3d6a354da257 (patch)
treebcfa7088ae70d7fff9656b102c7c5a9d9ad17f73 /odb/sql-token.hxx
parentadd8086259fb21f1e42aba6546c55e607d87ce93 (diff)
Add support for SQLite type system, adjust code generators
Diffstat (limited to 'odb/sql-token.hxx')
-rw-r--r--odb/sql-token.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/sql-token.hxx b/odb/sql-token.hxx
index fabcc99..4d9c7a1 100644
--- a/odb/sql-token.hxx
+++ b/odb/sql-token.hxx
@@ -7,6 +7,7 @@
#define ODB_SQL_TOKEN_HXX
#include <string>
+#include <iosfwd>
#include <cstddef> // std::size_t
class sql_token
@@ -36,6 +37,8 @@ public:
public:
enum punctuation_type
{
+ // Keep synched with punctuation_literals in source file.
+ //
p_semi,
p_comma,
p_lparen,
@@ -74,6 +77,9 @@ private:
std::string str_;
};
+std::ostream&
+operator<< (std::ostream&, sql_token const&);
+
#include <odb/sql-token.ixx>
#endif // ODB_SQL_TOKEN_HXX