Search in sources :

Example 1 with SQLNodeParser

use of org.jkiss.dbeaver.lang.sql.SQLNodeParser in project dbeaver by serge-rider.

the class ParseUtils method main.

public static void main(String[] args) {
    System.out.println("Test SCM parser");
    String sql = "SELECT * FROM SCHEMA.TABLE WHERE COL1 <> 100 AND COL2 = 'TEST'";
    SCMRoot nodeTree = ParseUtils.parseDocument(new Document(sql), new SQLNodeParser());
    System.out.println(nodeTree);
}
Also used : SQLNodeParser(org.jkiss.dbeaver.lang.sql.SQLNodeParser) Document(org.eclipse.jface.text.Document)

Aggregations

Document (org.eclipse.jface.text.Document)1 SQLNodeParser (org.jkiss.dbeaver.lang.sql.SQLNodeParser)1