Include FieldVisitors.h in less files.

This commit is contained in:
Alexander Kuzmenkov 2019-10-07 17:18:18 +03:00
parent 367c537106
commit 56b065881a
6 changed files with 14 additions and 4 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include <Core/Types.h>
#include <Parsers/ASTFunction.h>
#include <Parsers/IAST.h>
#include <Storages/IStorage_fwd.h>
#include <Databases/IDatabase.h>

View File

@ -12,6 +12,7 @@
#include <Parsers/ASTColumnDeclaration.h>
#include <Parsers/ASTCreateQuery.h>
#include <Parsers/ASTIdentifier.h>
#include <Parsers/ASTIndexDeclaration.h>
#include <Parsers/ASTLiteral.h>
#include <Parsers/ASTNameTypePair.h>
#include <Parsers/ASTInsertQuery.h>

View File

@ -15,6 +15,7 @@
#include <Parsers/ParserCreateQuery.h>
#include <Parsers/ASTRenameQuery.h>
#include <Parsers/formatAST.h>
#include <Parsers/ASTIndexDeclaration.h>
#include <Parsers/ASTInsertQuery.h>
#include <Interpreters/InterpreterCreateQuery.h>
#include <Interpreters/InterpreterRenameQuery.h>

View File

@ -2,7 +2,6 @@
#include <Core/Field.h>
#include <Core/Types.h>
#include <Common/FieldVisitors.h>
#include <IO/WriteHelpers.h>
#include <Parsers/ASTExpressionList.h>
#include <Parsers/ASTFunction.h>

View File

@ -1,13 +1,18 @@
#include <Storages/IndicesDescription.h>
#include <Parsers/ASTIndexDeclaration.h>
#include <Parsers/formatAST.h>
#include <Parsers/ParserCreateQuery.h>
#include <Parsers/parseQuery.h>
namespace DB
{
bool IndicesDescription::empty() const
{
return indices.empty();
}
bool IndicesDescription::has(const String & name) const
{
return std::cend(indices) != std::find_if(

View File

@ -1,11 +1,14 @@
#pragma once
#include <Parsers/ASTIndexDeclaration.h>
#include <Core/Types.h>
#include <memory>
#include <vector>
namespace DB
{
class ASTIndexDeclaration;
using IndicesASTs = std::vector<std::shared_ptr<ASTIndexDeclaration>>;
struct IndicesDescription
@ -14,7 +17,7 @@ struct IndicesDescription
IndicesDescription() = default;
bool empty() const { return indices.empty(); }
bool empty() const;
bool has(const String & name) const;
String toString() const;