Search in sources :

Example 1 with MySqlAnalyzeStatement

use of com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlAnalyzeStatement in project druid by alibaba.

the class MySqlStatementParser method parseAnalyze.

public MySqlAnalyzeStatement parseAnalyze() {
    accept(Token.ANALYZE);
    accept(Token.TABLE);
    MySqlAnalyzeStatement stmt = new MySqlAnalyzeStatement();
    List<SQLName> names = new ArrayList<SQLName>();
    this.exprParser.names(names, stmt);
    for (SQLName name : names) {
        stmt.addTableSource(new SQLExprTableSource(name));
    }
    return stmt;
}
Also used : MySqlAnalyzeStatement(com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlAnalyzeStatement) ArrayList(java.util.ArrayList) SQLName(com.alibaba.druid.sql.ast.SQLName)

Aggregations

SQLName (com.alibaba.druid.sql.ast.SQLName)1 MySqlAnalyzeStatement (com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlAnalyzeStatement)1 ArrayList (java.util.ArrayList)1