SpringR2dbcKueryClientBuilder

Builder for a KueryClient backed by Spring Data R2DBC.

Obtain an instance via SpringR2dbcKueryClient.builder. connectionFactory is required; everything else is optional.

Functions

Link copied to clipboard
abstract fun build(): KueryClient

Builds the KueryClient.

Link copied to clipboard
abstract fun connectionFactory(connectionFactory: ConnectionFactory): SpringR2dbcKueryClientBuilder

Sets the ConnectionFactory to execute SQL against. Required.

Link copied to clipboard
abstract fun converters(converters: List<Any>): SpringR2dbcKueryClientBuilder

Sets custom converters used for both binding parameters and mapping rows, typically Spring Converters annotated with @WritingConverter / @ReadingConverter.

Link copied to clipboard
abstract fun enableAutoSqlIdGeneration(enableAutoSqlIdGeneration: Boolean): SpringR2dbcKueryClientBuilder

Sets whether to automatically generate a sqlId for metrics when sql { ... } is called without an explicit sqlId. When observationRegistry is specified, the default is true; otherwise, the default is false.

Link copied to clipboard

Sets the KueryClientFetchObservationConvention used to customize the observation name and tags. When not set, KueryClientFetchObservationConvention.default is used.

Link copied to clipboard
abstract fun observationRegistry(observationRegistry: ObservationRegistry): SpringR2dbcKueryClientBuilder

Sets the ObservationRegistry, enabling Micrometer Observation instrumentation (metrics/tracing) for each fetch.