mdthansil
mdthansil
Explore posts from servers
KKysely
Created by mdthansil on 6/8/2023 in #help
How can I use Kysely migration inside NextJS 13 project?
I created a folder called kysely in root directory of next js then created a migrator.ts which contains migration code (Migrator) and created a folder inside kysely folder called migrations then I placed all migrations in it. I tried to run the migrator.ts file with ts-node but it's throwing some module import issues (cannot use import module outside a module) how can I run migration in nextjs
3 replies
KKysely
Created by mdthansil on 6/7/2023 in #help
How can i enable postgres Extensions (eg: uuid) with in Kysely Migration File
const query = sqlcreate extension "uuid-ossp";; how to execute this raw query inside migration file up method
4 replies