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,
|
2013-02-07 13:03:19 +00:00
|
|
|
const String & database_name,
|
2014-09-23 15:28:21 +00:00
|
|
|
Context & local_context,
|
2012-05-22 19:32:56 +00:00
|
|
|
Context & context,
|
|
|
|
ASTPtr & query,
|
2013-01-17 20:21:03 +00:00
|
|
|
NamesAndTypesListPtr columns,
|
|
|
|
bool attach) const;
|
2011-10-31 17:30:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|