#include #include #include #include #include #include namespace DB { BlockIO InterpreterShowEnginesQuery::execute() { return executeQuery("SELECT * FROM system.table_engines ORDER BY name", getContext(), QueryFlags{ .internal = true }).second; } void registerInterpreterShowEnginesQuery(InterpreterFactory & factory) { auto create_fn = [] (const InterpreterFactory::Arguments & args) { return std::make_unique(args.query, args.context); }; factory.registerInterpreter("InterpreterShowEnginesQuery", create_fn); } }