Examples of MySqlParser


Examples of com.highfleet.sql.convert.grammar.MySQLParser

          DebuggingErrorReporter reporter = new DebuggingErrorReporter(linesRead, blockToParse);
          MySQLLexer lexer = new MySQLLexer(input);
          lexer.setErrorReporter(reporter);
         
          CommonTokenStream tokens = new CommonTokenStream(lexer);
          MySQLParser parser = new MySQLParser(tokens);
          parser.ignoreDBName(ignoreDBCommands);
          parser.setErrorReporter(reporter);
          parser.setTemplateLib(stg);
          parser.setOutWriter(pw);
          parser.setDataFactory(printWriterFactory);
          parser.setTableAlterations(tableAlterations);
          parser.inTransaction(inTransaction);
          parser.script();
          inTransaction = parser.inTransaction();
          sb = new StringBuilder();
        }
      }
      printWriterFactory.closeDataFiles();
      pw.append("COMMIT;\n");
View Full Code Here

Examples of com.meidusa.amoeba.mysql.parser.sql.MysqlParser

                paramCount++;
            }
        }

        // 使用 Amoeba 自带的解析器分析查询语句。
        MysqlParser parser = new MysqlParser(new StringReader(parseSql));

        // 设置函数列表。
        parser.setFunctionMap(functionMap);

        Statement stmt = null;
        try {
            stmt = parser.doParse();
        } catch (ParseException e) {
            parsingFailed = true;

            // 语句解析失败,写出日志。
            if (logger.isDebugEnabled()) {
View Full Code Here

Examples of com.springsource.insight.plugin.jdbc.parser.parsers.MySqlParser

import com.springsource.insight.plugin.jdbc.parser.parsers.MySqlParser;


public class MySqlParserTest extends SqlParserTestImpl<MySqlParser> {
    public MySqlParserTest() {
        super(DatabaseType.MYSQL, new MySqlParser(),
                new SqlTestEntry("jdbc:mysql://localhost:3307/dbname?user=root&password=admin",
                        "localhost",
                        3307,
                        "dbname"),
                new SqlTestEntry("jdbc:mysql://localhost/dbname?user=root&password=admin",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.