getMongo() – Return the current database connection command
Returns the name of the current database.
Syntax diagram
Command parameters
No parameters.
Examples
The following example shows the command syntax for returning the connection information for the
current database:
db.getMongo()
The following example shows the syntax of a
value returned from running the getMongo
command:Jdbc:db2://hostname.com:portNumber/databaseName