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