-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure introspect to make the date or timestamp a string type. #177
Comments
Which SQL dialect are you using? If the database driver supports inserting/updating with strings, then kysely-codegen should always support strings as well. |
+1 on this, I'd love to throw away all usages of |
I'm also encountering this issue. pg returns string for |
I created script that fixes it by changing generated types. It allows to work with strings. Remember to change path! Run it after kysely-codegen script in package.json. I fixed some bugs I found, fresh code is here: Mine looks like this:
|
Should be fixed now in kysely-codegen@0.17.0! |
Is it possible to configure to what type in this case
date/timestamp
is introspected to? I would love to work onstrings
instead eg.Timestamp
type.Upvote & Fund
The text was updated successfully, but these errors were encountered: