https://kotlinlang.org logo
#exposed
Title
# exposed
d

damian

01/11/2018, 8:39 PM
i have a postgres database that I need to connect to. it contains a couple of columns with data type
timestamp without time zone
and I'm wondering how i should access this via exposed, would that be possible via
datetime
or do i have to create a custom
ColumnType
for this?
DateColumnType
is using a DateTimeFormat pattern (
"YYYY-MM-dd HH:mm:ss.SSSSSS"
) as fallback which does look right, but i assume that i would be unable to save data back to the db the right way
i've created a
ColumnType
and a
Table
extension, i'll report back once i have results in case someone else is interested.
t

tapac

01/11/2018, 10:42 PM
I’m in process of refactoring date/time support in Exposed: optional support to jodatime/java8 time, separate date/time/datetime/timestamp columns, etc. Hope to finish it till end of month, but not sure:D Feel free to share you vision or use-cases.
3 Views