aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Disks/ObjectStorages/S3/S3Capabilities.cpp
blob: 3e9a7d729b355304ee4056bf477975a86fa442f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <Disks/ObjectStorages/S3/S3Capabilities.h>

namespace DB
{

S3Capabilities getCapabilitiesFromConfig(const Poco::Util::AbstractConfiguration & config, const std::string & config_prefix)
{
    return S3Capabilities
    {
        .support_batch_delete = config.getBool(config_prefix + ".support_batch_delete", true),
        .support_proxy = config.getBool(config_prefix + ".support_proxy", config.has(config_prefix + ".proxy")),
    };
}

}