ClickHouse/dbms/include/DB/Storages/StorageFactory.h

33 lines
592 B
C
Raw Normal View History

2011-10-31 17:30:44 +00:00
#pragma once
#include <DB/Storages/IStorage.h>
namespace DB
{
2012-05-22 19:32:56 +00:00
class Context;
2011-10-31 17:30:44 +00:00
/** Позволяет создать таблицу по имени движка.
*/
class StorageFactory
{
public:
StoragePtr get(
const String & name,
const String & data_path,
const String & table_name,
const String & database_name,
Context & local_context,
2012-05-22 19:32:56 +00:00
Context & context,
ASTPtr & query,
NamesAndTypesListPtr columns,
const NamesAndTypesList & materialized_columns,
const NamesAndTypesList & alias_columns,
const ColumnDefaults & column_defaults,
bool attach) const;
2011-10-31 17:30:44 +00:00
};
}