@Override public Node visitShowTables(SqlBaseParser.ShowTablesContext context) { return new ShowTables( getLocation(context), Optional.ofNullable(context.qualifiedName()) .map(this::getQualifiedName), getTextIfPresent(context.pattern) .map(AstBuilder::unquote), getTextIfPresent(context.escape) .map(AstBuilder::unquote)); }
@Override public Node visitShowTables(SqlBaseParser.ShowTablesContext context) { return new ShowTables( getLocation(context), Optional.ofNullable(context.qualifiedName()) .map(this::getQualifiedName), getTextIfPresent(context.pattern) .map(AstBuilder::unquote), getTextIfPresent(context.escape) .map(AstBuilder::unquote)); }
@Override public Node visitShowSchemas(SqlBaseParser.ShowSchemasContext context) { return new ShowSchemas( getLocation(context), visitIfPresent(context.identifier(), Identifier.class), getTextIfPresent(context.pattern) .map(AstBuilder::unquote), getTextIfPresent(context.escape) .map(AstBuilder::unquote)); }
@Override public Node visitShowSchemas(SqlBaseParser.ShowSchemasContext context) { return new ShowSchemas( getLocation(context), visitIfPresent(context.identifier(), Identifier.class), getTextIfPresent(context.pattern) .map(AstBuilder::unquote), getTextIfPresent(context.escape) .map(AstBuilder::unquote)); }
@Override public Node visitShowCatalogs(SqlBaseParser.ShowCatalogsContext context) { return new ShowCatalogs(getLocation(context), getTextIfPresent(context.pattern) .map(AstBuilder::unquote)); }
@Override public Node visitShowCatalogs(SqlBaseParser.ShowCatalogsContext context) { return new ShowCatalogs(getLocation(context), getTextIfPresent(context.pattern) .map(AstBuilder::unquote)); }
query.getHaving(), orderBy, getTextIfPresent(context.limit)), Optional.empty(), Optional.empty()); term, orderBy, getTextIfPresent(context.limit));
query.getHaving(), orderBy, getTextIfPresent(context.limit)), Optional.empty(), Optional.empty()); term, orderBy, getTextIfPresent(context.limit));