void InsertCommand::execute() { const char* ns = _namespace->c_str(); _bsonResult = dbController()->insert(const_cast<char*>(_db->c_str()), const_cast<char*>(ns), _bson); }
void ShowdbsCommand::execute() { _results = dbController()->dbs(); }
void DropnamespaceCommand::execute() { const char* ns = _namespace->c_str(); _result = dbController()->dropNamespace(const_cast<char*>(_db->c_str()), const_cast<char*>(ns)); }