[SERVER-2337] DB connection doesn't autocomplete Created: 07/Jan/11  Updated: 19/May/14  Resolved: 07/Jan/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Kristina Chodorow (Inactive) Assignee: Mathias Stearn
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

db.getMongo().s<tab> doesn't give any autocomplete options. It would be nice to have them for setSlaveOk() and whatever other methods connections have.



 Comments   
Comment by Mathias Stearn [ 07/Jan/11 ]

We can't complete based on the results of a function call because that would require executing the function. Try this:

conn = db.getMongo()
conn.s<tab>
conn.<tab>

Generated at Thu Feb 08 02:59:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.