| 126 | } |
| 127 | |
| 128 | void DatabaseFactory::registerDatabase(const std::string & name, CreatorFn creator_fn, EngineFeatures features, Documentation documentation) |
| 129 | { |
| 130 | if (!database_engines.emplace(name, Creator{std::move(creator_fn), features, std::move(documentation)}).second) |
| 131 | throw Exception(ErrorCodes::LOGICAL_ERROR, "DatabaseFactory: the database engine name '{}' is not unique", name); |
| 132 | } |
| 133 | |
| 134 | DatabaseFactory & DatabaseFactory::instance() |
| 135 | { |
no test coverage detected