0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 22:41:12 +01:00

modules/console: Checkpoint the db column drop cmd (incomplete).

This commit is contained in:
Jason Volk 2018-09-04 23:21:26 -07:00
parent 2e96d6fe3b
commit 5963786ebf

View file

@ -1999,6 +1999,43 @@ catch(const std::out_of_range &e)
return true; return true;
} }
bool
console_cmd__db__DROP__DROP__DROP(opt &out, const string_view &line)
try
{
const params param{line, " ",
{
"dbname", "column"
}};
const auto dbname
{
param.at(0)
};
const auto colname
{
param.at(0)
};
auto &database
{
db::database::get(dbname)
};
throw error
{
"TODO: please implement."
};
return true;
}
catch(const std::out_of_range &e)
{
out << "No open database by that name" << std::endl;
return true;
}
bool bool
console_cmd__db__list(opt &out, const string_view &line) console_cmd__db__list(opt &out, const string_view &line)
{ {