How do Date columns works?

Vvicary5/4/2023
I am learning Kysely from the website, at the getting started section I can see the following line:
modified_at: ColumnType<Date, string | undefined, never>


But ColumnType is type-only and should not affect runtime conversion, how does Kysely knows when to convert the data into Date in runtime?
UUUnknown User5/4/2023
Message Not Public
Sign In & Join Server To View
KNKristian Notari5/4/2023
this should be correct
KNKristian Notari5/4/2023
keep in mind that you could end up having Date as select type but string as insert/update type, cause maybe you're passing strings for insertion (it depends on how you configure the conversion on the driver)
IIgal5/4/2023
pg supports custom result transformation using pg-types.
IIgal5/4/2023
mysql2 has a similar capability.
Vvicary5/5/2023
We use Aurora Serverless because of AppSync, it seems aws-sdk v3 has no post-selection type conversions.
IIgal5/5/2023
Are you using kysely-data-api?
Vvicary5/8/2023
Yes