All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.assembly.RaptorAggregatesComponent.kt Maven / Gradle / Ivy

There is a newer version: 0.27.0
Show newest version
package io.fluidsonic.raptor.domain.mongo

import com.mongodb.*
import io.fluidsonic.mongo.*
import io.fluidsonic.raptor.*
import io.fluidsonic.raptor.domain.*


@RaptorDsl
public fun RaptorAssemblyQuery.mongoStore(
	client: MongoClient,
	databaseName: String,
	collectionName: String,
	transactionOptions: TransactionOptions = TransactionOptions.builder().build(),
) {
	each {
		store(RaptorAggregateStore.mongo(
			client = client,
			databaseName = databaseName,
			collectionName = collectionName,
			transactionOptions = transactionOptions,
		))
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy