RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.
MIT License
819 stars 73 forks source link

Allow PG Timestamp to accept string as selectType. #199

Closed hevar closed 2 months ago

hevar commented 2 months ago

We're currently facing issues with the timestamps due to Date not considering microseconds, which would be fixed if the type is string.

Related issues: #194, #123, #177

RobinBlomberg commented 2 months ago

Released in kysely-codegen@0.16.7!

RobinBlomberg commented 2 months ago

Hey! I unfortunately had to revert this change in kysely-codegen@0.16.8, as the value returned by Postgres really is a Date. If you have any other ideas on how to resolve the underlying issue, I'd be happy to check it out.