aboutsummaryrefslogtreecommitdiff
path: root/odb/sql-lexer.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-07-10 15:14:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-07-10 15:14:21 +0200
commit1b64460a2b2c5411b6052cd4c4d8e8b0d46a4086 (patch)
treed2ee6ffd66c4753d4aba17bcd47f1364b3d17e69 /odb/sql-lexer.hxx
parent55e40cb233e4853bf43f6df288817d5fc5ba3f6f (diff)
Add support for SQL lexer reuse
Diffstat (limited to 'odb/sql-lexer.hxx')
-rw-r--r--odb/sql-lexer.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/sql-lexer.hxx b/odb/sql-lexer.hxx
index adeff37..bb1c56e 100644
--- a/odb/sql-lexer.hxx
+++ b/odb/sql-lexer.hxx
@@ -15,8 +15,11 @@
class sql_lexer
{
public:
+ sql_lexer ();
sql_lexer (std::string const& sql);
+ void lex (std::string const& sql);
+
struct invalid_input
{
invalid_input (std::size_t l, std::size_t c, std::string const& m)