mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
22 lines
457 B
C++
22 lines
457 B
C++
|
#pragma once
|
||
|
|
||
|
#include <threadpool.hpp>
|
||
|
#include <DB/Databases/IDatabase.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
class DatabaseFactory
|
||
|
{
|
||
|
public:
|
||
|
static DatabasePtr get(
|
||
|
const String & engine_name,
|
||
|
const String & database_name,
|
||
|
const String & path,
|
||
|
Context & context,
|
||
|
boost::threadpool::pool * thread_pool); /// thread_pool, если не nullptr может использоваться для распараллеливания загрузки таблиц.
|
||
|
};
|
||
|
|
||
|
}
|