listDatabases

@JvmName(name = "listDatabasesAsDocument")
fun listDatabases(): ListDatabasesFlow<Document>

Gets the list of databases

Return

the list databases iterable interface


Gets the list of databases

Return

the list databases iterable interface

Parameters

T

the type of the class to use


@JvmName(name = "listDatabasesAsDocumentWithSession")
fun listDatabases(clientSession: ClientSession): ListDatabasesFlow<Document>

Gets the list of databases

Return

the list databases iterable interface

Parameters

clientSession

the client session with which to associate this operation


inline fun <T : Any> listDatabases(clientSession: ClientSession): ListDatabasesFlow<T>

Gets the list of databases

Return

the list databases iterable interface

Parameters

clientSession

the client session with which to associate this operation

T

the type of the class to use


fun <T : Any> listDatabases(resultClass: Class<T>): ListDatabasesFlow<T>

Gets the list of databases

Return

the list databases iterable interface

Parameters

T

the type of the class to use

resultClass

the target document type of the iterable.


fun <T : Any> listDatabases(clientSession: ClientSession, resultClass: Class<T>): ListDatabasesFlow<T>

Gets the list of databases

Return

the list databases iterable interface

Parameters

T

the type of the class to use

clientSession

the client session with which to associate this operation

resultClass

the target document type of the iterable.