mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
29 lines
430 B
C++
29 lines
430 B
C++
#pragma once
|
|
|
|
#include <DB/Storages/IStorage.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
|
|
/** Позволяет создать таблицу по имени движка.
|
|
*/
|
|
class StorageFactory
|
|
{
|
|
public:
|
|
StoragePtr get(
|
|
const String & name,
|
|
const String & data_path,
|
|
const String & table_name,
|
|
const String & database_name,
|
|
Context & context,
|
|
ASTPtr & query,
|
|
NamesAndTypesListPtr columns,
|
|
bool attach) const;
|
|
};
|
|
|
|
}
|