Package io.fluidsonic.mongo

Types

Link copied to clipboard
interface AggregateFlow<out TResult : Any> : Flow<TResult>

Flow for aggregate.

Link copied to clipboard
interface ChangeStreamFlow<out TResult : Any> : Flow<ChangeStreamDocument<out TResult>>

Flow for change streams.

Link copied to clipboard
interface ClientSession : ClientSession

A client session that supports transactions.

Link copied to clipboard
interface DistinctFlow<out TResult : Any> : Flow<TResult>

Flow for distinct.

Link copied to clipboard
interface FindFlow<out TResult : Any> : Flow<TResult>

Flow for find.

Link copied to clipboard
interface ListCollectionsFlow<out TResult : Any> : Flow<TResult>

Flow for ListCollections.

Link copied to clipboard
interface ListDatabasesFlow<out TResult : Any> : Flow<TResult>

Flow for ListDatabases.

Link copied to clipboard
interface ListIndexesFlow<out TResult : Any> : Flow<TResult>

Flow for ListIndexes.

Link copied to clipboard
interface MapReduceFlow<out TResult : Any> : Flow<TResult>

Flow for map reduce.

Link copied to clipboard
@Immutable
interface MongoClient : Closeable

A client-side representation of a MongoDB cluster. Instances can represent either a standalone MongoDB instance, a replica set, or a sharded cluster. Instance of this class are responsible for maintaining an up-to-date state of the cluster, and possibly cache resources related to this, including background threads for monitoring, and connection pools.

Link copied to clipboard
object MongoClients

A factory for MongoClient instances.

Link copied to clipboard
@ThreadSafe
interface MongoCollection<TDocument : Any>

The MongoCollection interface.

Link copied to clipboard
@ThreadSafe
interface MongoDatabase

The MongoDatabase interface.

Functions

Link copied to clipboard
inline fun <TDocument : Any> MongoDatabase.getCollectionOf(name: String): MongoCollection<TDocument>

Gets a collection, with a specific default document class.