ClickHouse/src/Disks/getOrCreateDiskFromAST.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
432 B
C++
Raw Normal View History

2022-11-20 18:28:11 +00:00
#pragma once
#include <string>
#include <Interpreters/Context_fwd.h>
#include <Parsers/IAST_fwd.h>
namespace DB
{
class ASTFunction;
/**
* Create a DiskPtr from disk AST function like disk(<disk_configuration>),
* add it to DiskSelector by a unique (but always the same for given configuration) disk name
* and return this name.
*/
2023-03-01 18:53:01 +00:00
std::string getOrCreateDiskFromDiskAST(const ASTPtr & disk_function, ContextPtr context);
2022-11-20 18:28:11 +00:00
}