Companion

object Companion

Functions

Link copied to clipboard
fun fromDataSource(dataSource: DataSource, ownsDataSource: Boolean = false, dynamicJson: Json = octaviusJson, dynamicWriteStrategy: DynamicWriteStrategy = DynamicWriteStrategy.AUTOMATIC_WHEN_UNAMBIGUOUS): OctaviusClient

A client over dataSource that runs its own transactions, bound to the calling thread. Where a framework owns transactions, use fromSessionProvider with a provider that finds its session, or each will open one.

Link copied to clipboard
fun fromSessionProvider(provider: SessionProvider, ownsProvider: Boolean = true, dynamicJson: Json = octaviusJson, dynamicWriteStrategy: DynamicWriteStrategy = DynamicWriteStrategy.AUTOMATIC_WHEN_UNAMBIGUOUS): OctaviusClient

A client over a SessionProvider of your own: a framework's transaction manager, or a test harness that pins every query to one connection.