robbiblubber.org

help | login | search:  
<<

Home Page
Index

Projects

Utility Suite
Data Suite
Bad Wolf Suite
WeakWiki

User Docs

ConfigNotepad
LED
rqoon
Nuub

Code Docs

.NET
Java
PHP

robbiblubber.org

Specs
Articles

Sources















show wiki  show source  compare to current  compare to previous  read  history 


getSiblingDB()


MongoDB Driver Function Reference


Gets a database. This allows commands being executed on databases other than the current one.



db.getSiblingDB(<name>)



Arguments


<name> Database name



Return Value


Returns a database.



Example


db,getSiblingDB("company").getCollection("employees").find();


Gets the employees collection in the company database and calls the find() method on the collection.







home | MongoDB Driver Function Reference | MongoDB Driver