mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
18 lines
345 B
C++
18 lines
345 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context.h>
|
|
|
|
inline DB::Context createContext()
|
|
{
|
|
auto context = DB::Context::createGlobal();
|
|
context.makeGlobalContext();
|
|
context.setPath("./");
|
|
return context;
|
|
}
|
|
|
|
inline const DB::Context & getContext()
|
|
{
|
|
static DB::Context global_context = createContext();
|
|
return global_context;
|
|
}
|