TypeHandler

interface TypeHandler<T : Any>

Interface for handling conversion between Kotlin types and PostgreSQL types.

Registered converters are automatically used for:

  • Single values in queries

  • Elements in PostgreSQL arrays

  • Fields within composite types

Type Parameters

T

The Kotlin type this converter handles.

Inheritors

Properties

Link copied to clipboard
abstract val fromPgString: (String) -> T
Link copied to clipboard
open val fromResultSet: (ResultSet, Int) -> T??
Link copied to clipboard
Link copied to clipboard
abstract val kotlinClass: KClass<T>
Link copied to clipboard
open val pgSchema: String
Link copied to clipboard
abstract val pgTypeName: String
Link copied to clipboard
open val toJdbc: (T) -> Any?
Link copied to clipboard
abstract val toPgString: (T) -> String