MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / registerDatabaseMemory

Function registerDatabaseMemory

src/Databases/DatabaseMemory.cpp:241–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240void registerDatabaseMemory(DatabaseFactory & factory);
241void registerDatabaseMemory(DatabaseFactory & factory)
242{
243 auto create_fn = [](const DatabaseFactory::Arguments & args)
244 {
245 return make_shared<DatabaseMemory>(
246 args.database_name,
247 args.context);
248 };
249 factory.registerDatabase("Memory", create_fn, {}, Documentation{
250 .description = "An in-memory database whose metadata is not persisted and is lost on restart; tables and data live only for the duration of the server session.",
251 .syntax = "ENGINE = Memory",
252 .related = {"Atomic"}});
253}
254
255}

Callers 1

registerDatabasesFunction · 0.85

Calls 1

registerDatabaseMethod · 0.80

Tested by

no test coverage detected