mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
35 lines
693 B
C++
35 lines
693 B
C++
#pragma once
|
|
|
|
#include <DB/Storages/IStorage.h>
|
|
#include <common/singleton.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
|
|
/** Позволяет создать таблицу по имени движка.
|
|
*/
|
|
class StorageFactory : public Singleton<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,
|
|
bool has_force_restore_data_flag) const;
|
|
};
|
|
|
|
}
|