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