Search in sources :

Example 1 with OracleUnique

use of com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleUnique in project druid by alibaba.

the class OracleExprParser method parseUnique.

public SQLUnique parseUnique() {
    accept(Token.UNIQUE);
    OracleUnique unique = new OracleUnique();
    accept(Token.LPAREN);
    exprList(unique.getColumns(), unique);
    accept(Token.RPAREN);
    if (lexer.token() == Token.USING) {
        OracleUsingIndexClause using = parseUsingIndex();
        unique.setUsing(using);
    }
    return unique;
}
Also used : OracleUsingIndexClause(com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleUsingIndexClause) OracleUnique(com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleUnique)

Aggregations

OracleUnique (com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleUnique)1 OracleUsingIndexClause (com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleUsingIndexClause)1