| 239 | |
| 240 | void registerDatabaseMemory(DatabaseFactory & factory); |
| 241 | void 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 | } |
no test coverage detected