ClickHouse/dbms/src/Storages/StorageCloud.cpp
2016-03-28 14:19:51 +03:00

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);
}
}