ClickHouse/dbms/Interpreters/loadMetadata.h

17 lines
507 B
C++
Raw Normal View History

2011-10-30 11:30:52 +00:00
#pragma once
namespace DB
{
class Context;
2011-10-30 11:30:52 +00:00
2017-06-18 05:43:29 +00:00
/// 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(Context & context);
/// Load tables from databases and add them to context. Database 'system' is ignored. Use separate function to load system tables.
2019-11-28 19:40:51 +00:00
void loadMetadata(Context & context, const String & default_database_name = {});
2011-10-30 11:30:52 +00:00
}