KotlinPlugin

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

Installs Kotlin-specific functionality.

  • Kotlin inference interceptor that handles the KotlinMapper for registered types.

  • Kotlin mapper factory that creates implicit mappers for any data class.

  • Kotlin argument factory that binds Kotlin value classes as arguments.

  • Kotlin column mapper factory that maps Kotlin value classes from result sets.

  • Support for using Handles in 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