public Optional<String> getDatabase() {
        return hasPreferredDatabase() ? Optional.of(this.config.getDatabase()) : Optional.empty();
    }
Gets database of the node.

@return database of the node
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseNode.java