Skip to content
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

PostgreSQL how to configure generated data type #208

Open
mperdikeas opened this issue Oct 10, 2024 · 0 comments
Open

PostgreSQL how to configure generated data type #208

mperdikeas opened this issue Oct 10, 2024 · 0 comments

Comments

@mperdikeas
Copy link

mperdikeas commented Oct 10, 2024

Kysely documents how to configure runtime types returned by the PostgreSQL driver:

https://kysely.dev/docs/recipes/data-types

Unfortunately, it is not possible to apply this recipe when invoking kysely-codegen as it is invoked as a self-contained utility and I see no way to invoke it programmatically and use the pg-types package to configure the types it generates. So, for instance, BIGSERIAL data types in PostgreSQL are generated as strings in TypeScript. Is there a way to configure the PostgreSQL driver the way Kysely does?

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant