ClickHouse/dbms/include/DB/Storages/StorageFactory.h
2014-10-03 19:30:10 +04:00

33 lines
592 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 & local_context,
Context & context,
ASTPtr & query,
NamesAndTypesListPtr columns,
const NamesAndTypesList & materialized_columns,
const NamesAndTypesList & alias_columns,
const ColumnDefaults & column_defaults,
bool attach) const;
};
}