ClickHouse/src/Databases/DatabaseReplicatedHelpers.h
tavplubix 7a43a87f5b
Use shard and replica name from Replicated database arguments (#31488)
* fix another issue

* use shard and replica name from Replicated database

* fix

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-23 12:41:54 +03:00

15 lines
281 B
C++

#pragma once
#include <Core/Types.h>
#include <memory>
namespace DB
{
class IDatabase;
using DatabasePtr = std::shared_ptr<IDatabase>;
String getReplicatedDatabaseShardName(const DatabasePtr & database);
String getReplicatedDatabaseReplicaName(const DatabasePtr & database);
}