public void setDBRoles(Collection<String> dbRoles) {
        this.configuration.put(ClientConfigProperties.SESSION_DB_ROLES.getKey(), ClientConfigProperties.commaSeparated(dbRoles));
        this.unmodifiableDbRolesView =
                Collections.unmodifiableCollection(ClientConfigProperties.valuesFromCommaSeparated(
                        this.configuration.get(ClientConfigProperties.SESSION_DB_ROLES.getKey())));
    }
Sets list of DB roles that should be applied to each query.

@param dbRoles
client-v2/src/main/java/com/clickhouse/client/api/Client.java