@Override public Node visitShowRoleGrants(SqlBaseParser.ShowRoleGrantsContext context) { return new ShowRoleGrants( getLocation(context), getIdentifierIfPresent(context.identifier())); }
@Override public Node visitShowRoleGrants(SqlBaseParser.ShowRoleGrantsContext context) { return new ShowRoleGrants( getLocation(context), getIdentifierIfPresent(context.identifier())); }
@Override public Node visitSetRole(SqlBaseParser.SetRoleContext context) { SetRole.Type type = SetRole.Type.ROLE; if (context.ALL() != null) { type = SetRole.Type.ALL; } else if (context.NONE() != null) { type = SetRole.Type.NONE; } return new SetRole(getLocation(context), type, getIdentifierIfPresent(context.role)); }
@Override public Node visitSetRole(SqlBaseParser.SetRoleContext context) { SetRole.Type type = SetRole.Type.ROLE; if (context.ALL() != null) { type = SetRole.Type.ALL; } else if (context.NONE() != null) { type = SetRole.Type.NONE; } return new SetRole(getLocation(context), type, getIdentifierIfPresent(context.role)); }
@Override public Node visitShowRoles(SqlBaseParser.ShowRolesContext context) { return new ShowRoles( getLocation(context), getIdentifierIfPresent(context.identifier()), context.CURRENT() != null); }
@Override public Node visitShowRoles(SqlBaseParser.ShowRolesContext context) { return new ShowRoles( getLocation(context), getIdentifierIfPresent(context.identifier()), context.CURRENT() != null); }