KyselyK
Kyselyβ€’3y ago
ohmi

kysely-codegen for multiple databases

I have two MySQL 'databases' within the same instance. From the documentation, it doesn't look like the codegen has innate support for multiple databases with different schemas?

I could codegen with the two different connection strings with a different
--out-file
, rename the exported interfaces, then manually update
index.d.ts
, but I was wondering if there's a better solution?
Solution
Hey πŸ‘‹

type file & kysely instance per database is what I would go for.
Was this page helpful?