Exemple #1
0
void InsertCommand::execute() {
    const char* ns = _namespace->c_str();
    _bsonResult = dbController()->insert(const_cast<char*>(_db->c_str()), const_cast<char*>(ns), _bson);
}
Exemple #2
0
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));
}