blob: fbaf79946250024e309176d823c3b80c3089105e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <istream>
#include <string>
#include <connection.h>
#include <boost/filesystem/path.hpp>
class sqlFlexLexer : public yyFlexLexer {
public:
sqlFlexLexer(const boost::filesystem::path &, std::istream &, DB::Connection *);
int yylex();
void Comment(const std::string &);
void Statement(const std::string &);
std::string MockScriptDir() const;
protected:
void LexerOutput(const char *, int) override;
private:
DB::Connection * conn;
const boost::filesystem::path script;
};
|