Closed nisuxyz closed 1 month ago
@RobinBlomberg this seems already addressed in https://github.com/RobinBlomberg/kysely-codegen/commit/ad03d2ef67f40c7d22df27e30a16bcf6083da463
can we get a new release?
Should be fixed now in kysely-codegen@0.17.0!
Based on the documentation, I would expect a database that I migrated and seeded with:
To generate a type of
Generated<Timestamp>
for thecreated_at
column. However I getGenerated<string>
:This is preventing me from using the generated types with the serialize plugin, which would allow me to do comparisons on "timestamp" tables by passing date objects like so:
I'm using the
worker-bun-sqlite
dialect when generating (this is what I have configured as my dialect for kysely: (kysely-bun-worker)[https://github.com/subframe7536/kysely-sqlite-tools/tree/master/packages/dialect-bun-worker])Thank you for creating this utility!
Upvote & Fund