DurationAsPgIntervalConverter

object DurationAsPgIntervalConverter : ParameterConverter<Duration>

Druga strona tego samego: Duration w parametrze idzie do bazy jako interval.

Zwracany PgInterval jest domyślnym typem Kotlina dla interval, więc sterownik sam zadeklaruje właściwy OID i getDefaultTypeName nie ma tu nic do powiedzenia.

Properties

Link copied to clipboard
open override val supportedClass: KClass<Duration>

Functions

Link copied to clipboard
open fun canConvert(sourceClass: KClass<*>, expectedOid: Int, context: SerializationContext): Boolean
Link copied to clipboard
open override fun convert(source: Duration, expectedOid: Int, context: SerializationContext): Any
Link copied to clipboard
open fun getDefaultTypeName(sourceClass: KClass<*>, context: SerializationContext): QualifiedName?