src/PythonHandler.h
branchv_0
changeset 25 940bd8320e82
parent 23 8ce11a192aad
child 29 5105357e9b47
equal deleted inserted replaced
24:b94ed3444d80 25:940bd8320e82
    44 using namespace std;
    44 using namespace std;
    45 using namespace relpipe;
    45 using namespace relpipe;
    46 using namespace relpipe::reader;
    46 using namespace relpipe::reader;
    47 using namespace relpipe::reader::handlers;
    47 using namespace relpipe::reader::handlers;
    48 
    48 
    49 class PythonHandler : public RelationalReaderStringHadler {
    49 class PythonHandler : public RelationalReaderStringHandler {
    50 private:
    50 private:
    51 	const wregex ATTRIBUTE_NAMES_ALLOWED = wregex(L"[a-zA-Z0-9_]+");
    51 	const wregex ATTRIBUTE_NAMES_ALLOWED = wregex(L"[a-zA-Z0-9_]+");
    52 	const wregex ATTRIBUTE_NAMES_DISALLOWED = wregex(L"WHERE|[0-9_].*|False|None|True|and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield"); // Python keywords from: import keyword; keyword.kwlist
    52 	const wregex ATTRIBUTE_NAMES_DISALLOWED = wregex(L"WHERE|[0-9_].*|False|None|True|and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield"); // Python keywords from: import keyword; keyword.kwlist
    53 
    53 
    54 	shared_ptr<writer::RelationalWriter> relationalWriter;
    54 	shared_ptr<writer::RelationalWriter> relationalWriter;