mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 22:22:00 +00:00
26 lines
388 B
C++
26 lines
388 B
C++
|
#include <DB/Storages/StorageCloud.h>
|
||
|
#include <DB/Databases/DatabaseCloud.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
namespace ErrorCodes
|
||
|
{
|
||
|
extern const int LOGICAL_ERROR;
|
||
|
}
|
||
|
|
||
|
|
||
|
void StorageCloud::drop()
|
||
|
{
|
||
|
DatabasePtr owned_db = database.lock();
|
||
|
if (!owned_db)
|
||
|
throw Exception("DatabaseCloud is detached", ErrorCodes::LOGICAL_ERROR);
|
||
|
|
||
|
DatabaseCloud & db = static_cast<DatabaseCloud &>(*owned_db);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|