robbiblubber.org

help | login | search:  
>>

read  source  history 


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