diff options
author | Ben Becker <ben.becker@10gen.com> | 2013-01-18 14:15:28 -0800 |
---|---|---|
committer | Ben Becker <ben.becker@10gen.com> | 2013-01-18 14:15:43 -0800 |
commit | 41c1110326ae00fc7fb279b3bfeabadc3a82bc5a (patch) | |
tree | 646e122504532957a3517ea1b3e82070c629d091 /src/mongo/scripting/engine_v8.h | |
parent | 98d2e5d364e01581a4ba1b2e7df25f79ebd836b2 (diff) | |
download | mongo-41c1110326ae00fc7fb279b3bfeabadc3a82bc5a.tar.gz |
SERVER-8104: clean up js global object
Diffstat (limited to 'src/mongo/scripting/engine_v8.h')
-rw-r--r-- | src/mongo/scripting/engine_v8.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/scripting/engine_v8.h b/src/mongo/scripting/engine_v8.h index 2ece1eab79d..991e2f63fcd 100644 --- a/src/mongo/scripting/engine_v8.h +++ b/src/mongo/scripting/engine_v8.h @@ -91,10 +91,18 @@ namespace mongo { /** check if there is a pending killOp request */ bool isKillPending() const; + /** + * Connect to a local database, create a Mongo object instance, and load any + * server-side js into the global object + */ virtual void localConnect(const char* dbName); virtual void externalSetup(); + virtual void installDBAccess(); + + virtual void installBSONTypes(); + virtual string getError() { return _error; } virtual bool hasOutOfMemoryException(); |