robbiblubber.org

help | login | search:  
>>

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


db.getName()


MongoDB Driver Function Reference


Gets the current database name.
More information can be found in the corresponding entry of the MongoDB Manual.



db.getName()



Return Value


Returns a result set (cursor) containing the database name string value.



Example


db.getName();


Returns the database name.
















home | MongoDB Driver Function Reference | MongoDB Driver