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

34 lines
657 B
C++
Raw Normal View History

2011-10-31 17:30:44 +00:00
#pragma once
#include <DB/Storages/IStorage.h>
2015-09-29 19:19:54 +00:00
#include <common/singleton.h>
2011-10-31 17:30:44 +00:00
namespace DB
{
2012-05-22 19:32:56 +00:00
class Context;
2011-10-31 17:30:44 +00:00
/** Позволяет создать таблицу по имени движка.
*/
2015-02-09 09:51:08 +00:00
class StorageFactory : public Singleton<StorageFactory>
2011-10-31 17:30:44 +00:00
{
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
};
}