KotlinPlugin

class KotlinPlugin(installKotlinMapperFactory: Boolean = true, enableCoroutineSupport: Boolean = false) : JdbiPlugin.Singleton

Installs Kotlin specific functionality.

  • Kotlin inference interceptor that handles the {@link KotlinMapper} for registered types
  • Kotlin mapper factory that creates implicit mappers for any data class
  • Support for using Handles in Coroutines
    • @property installKotlinMapperFactory If true, install the {@link KotlinMapperFactory}.
      @property enableCoroutineSupport If true, enable support for Kotlin Coroutines.

Constructors

Link copied to clipboard
constructor(installKotlinMapperFactory: Boolean = true, enableCoroutineSupport: Boolean = false)

Functions

Link copied to clipboard
Link copied to clipboard
open fun customizeHandle(handle: Handle): Handle
Link copied to clipboard
open override fun customizeJdbi(jdbi: Jdbi)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int