Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (9 sloc) 244 Bytes
#include "handler.h"
namespace {
bool SqlHandler(Handler* handler) {
Json json = MySQL::SelectAll("SHOW PROCESSLIST");
handler->Print(JsonEncode(json));
return true;
}
REGISTER_HANDLER(SqlHandler, "/sql$", SqlHandler);
} // namespace
You can’t perform that action at this time.