listDatabases

abstract fun listDatabases(): ListDatabasesFlow<Document>

Gets the list of databases

Return

the list databases iterable interface


abstract fun listDatabases(clientSession: ClientSession): ListDatabasesFlow<Document>

Gets the list of databases

Return

the list databases iterable interface

Since

3.6

Parameters

clientSession

the client session with which to associate this operation


abstract fun <TResult : Any> listDatabases(resultClass: KClass<out TResult>): ListDatabasesFlow<TResult>

Gets the list of databases

Return

the list databases iterable interface

Parameters

resultClass

the class to cast the database documents to

the type of the class to use instead of `Document`.

abstract fun <TResult : Any> listDatabases(clientSession: ClientSession, resultClass: KClass<out TResult>): ListDatabasesFlow<TResult>

Gets the list of databases

Return

the list databases iterable interface

Since

3.6

Parameters

clientSession

the client session with which to associate this operation

resultClass

the class to cast the database documents to

the type of the class to use instead of `Document`.