We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
--runtime-enums
I created an enum in Postgres using create type "Schema"."ClaimTypeEnum" as enum ('Institutional', 'Professional')
create type "Schema"."ClaimTypeEnum" as enum ('Institutional', 'Professional')
and referenced it in Kysely with sql.id('Schema', 'ClaimTypeEnum')
sql.id('Schema', 'ClaimTypeEnum')
but when I run npx kysely-codegen --runtime-enums, I get
npx kysely-codegen --runtime-enums
export interface Table { ClaimType: "Institutional" | "Professional"; }
instead of something like
export enum ClaimTypeEnum { INSTITUTIONAL = 'Institutional', PROFESSIONAL = 'Professional', } export interface Table { ClaimType: ClaimTypeEnum }
For context, I'm using Postgres 16.4, and kysely-codegen 0.16.8.
Postgres 16.4
kysely-codegen 0.16.8
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I created an enum in Postgres using
create type "Schema"."ClaimTypeEnum" as enum ('Institutional', 'Professional')
and referenced it in Kysely with
sql.id('Schema', 'ClaimTypeEnum')
but when I run
npx kysely-codegen --runtime-enums
, I getinstead of something like
For context, I'm using
Postgres 16.4
, andkysely-codegen 0.16.8
.Upvote & Fund
The text was updated successfully, but these errors were encountered: