RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.
MIT License
690 stars 62 forks source link

Is it possible to configure to which types database columns are introspected? #170

Open tzezar opened 5 days ago

tzezar commented 5 days ago

We use kysely-codegen and we would like to use those generated types later in the code fe. in mapping domain models to db, but they often are translated to diffrent types we want and we struggle with type conversions. One source of truth would be superior too. Lets say int id is introspected to Generated<number> (we would like number type) or decimals are introspected to Numeric (we would like just number). How this can be done in convenient way and is it possible?

Upvote & Fund

Fund with Polar