ClickHouse/dbms/include/DB/Interpreters/InterpreterCreateQuery.h
2011-11-01 15:16:04 +00:00

29 lines
627 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <DB/Storages/IStorage.h>
#include <DB/Interpreters/Context.h>
namespace DB
{
/** Позволяет создать новую таблицу или создать объект уже существующей таблицы.
*/
class InterpreterCreateQuery
{
public:
InterpreterCreateQuery(ASTPtr query_ptr_, Context & context_, size_t max_block_size_ = DEFAULT_BLOCK_SIZE);
/// Добавляет созданную таблицу в контекст, а также возвращает её.
StoragePtr execute();
private:
ASTPtr query_ptr;
Context context;
size_t max_block_size;
};
}