We need to enhance FluidShell to support a JavaScript and MongoShell CLI. These are the things we need to do :
1. In ShellLineInterpreter we need to add an option for "CLI_SHELL_LINE_EXECUTE_SQL_AS_JAVASCRIPT" = true | false : default = false
2. In ShellLineInterpreter we need to add an option for "CLI_SHELL_LINE_EXECUTE_JAVASCRIPT_IMMEDIATELY" = true | false : default = false
3. In ShellLineInterpreter we need to add an option for "CLI_SHELL_LINE_JAVASCRIPT_API" = aqua | mongo : default = aqua
4. The "cli" command should add options "javascript" and "mongoshell" so we can do a "cli javascript" and "cli mongoshell".
5. ShellLineInterpreter.interpretLine() we need to add a type of JAVASCRIPT_CMD
6. In CommandLineInterpreter line 1278 we need to add code to execute JAVASCRIPT_CMD
7. You can see how to execute the JavaScript engine for the aqua api in ScriptorPanel.executeScript()
8. In the Schema Tree server right mouse click menu we need to add an item "Mongo Shell" if the server is a MongoDB server. This will open a FluidShell with the "cli mongoshell".
http://docs.mongodb.org/manual/reference/method/
"mongo Shell Methods : JavaScript in MongoDB
Although these methods use JavaScript, most interactions with MongoDB do not use JavaScript but use an idiomatic driver in the language of the interacting application."
Initial implementation are checked in under SVN #32477 & #32480
Initial implementation are checked in under SVN #32477 & #32480
Issue #8962 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
8 issue links |
relates to #8995
Issue #8995We need to determine what the MongoShell initial prompt should say |
relates to #8996
Issue #8996We may need to add MongoShell support to the Shortcut toolbar |
relates to #8994
Issue #8994We need to define the default Aliases for the MongoShell |
relates to #8993
Issue #8993We need a MongoShell icon on the Query Window toolbar if it is open on a MongoDB server |
relates to #8992
Issue #8992We need a MongoShell to persist over a restart as a MongoShell instead of a FluidShell |
relates to #8991
Issue #8991We need a MongoShell icon |
relates to #9144
Issue #9144MongoShell - add Script entry to "File -> Options -> FluidShell -> ..." |
relates to #9145
Issue #9145MongoShell - support mongo shell - review shell variables |
http://docs.mongodb.org/manual/reference/method/
"mongo Shell Methods : JavaScript in MongoDB
Although these methods use JavaScript, most interactions with MongoDB do not use JavaScript but use an idiomatic driver in the language of the interacting application."