0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 19:58:53 +02:00

modules/console: Add db stats convenience command to passthru to prop rocksdb.stats.

This commit is contained in:
Jason Volk 2018-04-17 13:43:10 -07:00
parent 12957038f7
commit 359ff91316

View file

@ -772,6 +772,22 @@ catch(const std::out_of_range &e)
return true;
}
bool
console_cmd__db__stats(opt &out, const string_view &line)
{
const params param{line, " ",
{
"dbname", "column"
}};
return console_cmd__db__prop(out, fmt::snstringf
{
1024, "%s %s rocksdb.stats",
param.at(0),
param.at(1)
});
}
bool
console_cmd__db__files(opt &out, const string_view &line)
try