ListDatabasesFlow

interface ListDatabasesFlow<out TResult : Any> : Flow<TResult>

Flow for ListDatabases.

Parameters

The type of the result.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun batchSize(batchSize: Int): ListDatabasesFlow<TResult>

Sets the number of documents to return per batch.

Link copied to clipboard
abstract suspend fun collect(collector: FlowCollector<TResult>)
Link copied to clipboard
abstract fun filter(filter: Bson?): ListDatabasesFlow<TResult>

Sets the query filter to apply to the returned database names.

Link copied to clipboard
abstract suspend fun firstOrNull(): TResult?

Helper to return first result.

Link copied to clipboard
abstract fun maxTime(maxTime: Long, timeUnit: TimeUnit): ListDatabasesFlow<TResult>

Sets the maximum execution time on the server for this operation.

Link copied to clipboard
abstract fun nameOnly(nameOnly: Boolean?): ListDatabasesFlow<TResult>

Sets the nameOnly flag that indicates whether the command should return just the database names or return the database names and size information.