aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Databases/DatabaseFactory.h
blob: cb631cd76d08a32db38888398a894d37f248daf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <Interpreters/Context_fwd.h>
#include <Databases/IDatabase.h>

namespace DB
{

class ASTCreateQuery;

class DatabaseFactory
{
public:
    static DatabasePtr get(const ASTCreateQuery & create, const String & metadata_path, ContextPtr context);

    static DatabasePtr getImpl(const ASTCreateQuery & create, const String & metadata_path, ContextPtr context);
};

}