dave08
12/06/2022, 10:49 AM@KomapperUpdatedAt
but it's recorded as an Int (unix time stamp), can komapper handle that? Maybe kotlinx.datetime's Instant?Toshihiro Nakamura
12/06/2022, 2:47 PM@KomapperUpdatedAt
clumn.
@KomapperUpdatedAt
is supported for the following types:
- java.time.Instant
- java.time.LocalDateTime
- java.time.OffsetDateTime
- kotlinx.datetime.Instant
- kotlinx.datetime.LocalDateTimedave08
12/06/2022, 2:48 PMToshihiro Nakamura
12/06/2022, 2:55 PMdave08
12/06/2022, 2:58 PMDataTypeConverter<Instant, Int>
would support this... since in the end I'm mapping to an Instant in the data class...?Toshihiro Nakamura
12/06/2022, 3:17 PM@KomapperUpdatedAt
and generates timestamp assignment code at compile-time for efficiency, so Komapper cannot use DataTypeConverter<Instant, Int>
which is runtime information.