Open araguma opened 2 weeks ago
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
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