Johan Grundberg
Johan Grundberg
KKysely
Created by Johan Grundberg on 5/6/2024 in #help
Type-only imports in migration files
Thank you for the quick reply! Also (I should have done this in the original post), I'd like to thank you and the other maintainers for creating and maintaining Kysely. IMO it is a huge contribution to the TS ecosystem and a brilliant use of the typing system. For each hour you spend working on it I wouldn't be surprised if you save a hundred in debugging and documentation searches for the developers using it.
6 replies
KKysely
Created by Johan Grundberg on 5/6/2024 in #help
Type-only imports in migration files
As a side note, the consistent-type-imports rule from typescript-eslint will raise warnings/errors about this with its default settings (which is how I found this issue).
6 replies
KKysely
Created by bombillazo on 4/2/2024 in #help
Kysely setup in monolith API
A bit late here but according to the docs the singleton approach seems 100% correct assuming you have a single database. From the docs: "You should create one instance of Kysely per database using the Kysely constructor. Each Kysely instance maintains it's own connection pool.".
10 replies