mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
495c6e03aa
* Replace all Context references with std::weak_ptr * Fix shared context captured by value * Fix build * Fix Context with named sessions * Fix copy context * Fix gcc build * Merge with master and fix build * Fix gcc-9 build
17 lines
532 B
C++
17 lines
532 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context_fwd.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Load tables from system database. Only real tables like query_log, part_log.
|
|
/// You should first load system database, then attach system tables that you need into it, then load other databases.
|
|
void loadMetadataSystem(ContextPtr context);
|
|
|
|
/// Load tables from databases and add them to context. Database 'system' is ignored. Use separate function to load system tables.
|
|
void loadMetadata(ContextPtr context, const String & default_database_name = {});
|
|
|
|
}
|