LocalDateWithInfinitySerializer

object LocalDateWithInfinitySerializer : KSerializer<LocalDate>

Serializer for LocalDate that supports PostgreSQL's infinity and -infinity values.

This serializer ensures that LocalDate.Companion.DISTANT_FUTURE and LocalDate.Companion.DISTANT_PAST are correctly converted to infinity and -infinity strings respectively, which are understood by PostgreSQL.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): LocalDate
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: LocalDate)