#include #include namespace DB { namespace ErrorCodes { extern const int UNKNOWN_DATABASE_ENGINE; } DatabasePtr DatabaseFactory::get( const String & engine_name, const String & database_name, const String & path, Context & context) { if (engine_name == "Ordinary") return std::make_shared(database_name, path); throw Exception("Unknown database engine: " + engine_name, ErrorCodes::UNKNOWN_DATABASE_ENGINE); } }