public InsertSettings setDatabase(String database) {
        ValidationUtils.checkNonBlank(database, "database");
        rawSettings.put("database", database);
        return this;
    }
Sets database to be used for a request.
client-v2/src/main/java/com/clickhouse/client/api/insert/InsertSettings.java