0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00
mongodb/shell/utils.h

24 lines
571 B
C++

// utils.h
#pragma once
#include "../scripting/engine.h"
namespace mongo {
namespace shellUtils {
void RecordMyLocation( const char *_argv0 );
void installShellUtils( Scope& scope );
// Scoped management of mongo program instances. Simple implementation:
// destructor kills all mongod instances created by the shell.
struct MongoProgramScope {
MongoProgramScope() {} // Avoid 'unused variable' warning.
~MongoProgramScope();
};
void KillMongoProgramInstances();
}
}