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
Solution:
Hey 👋 You can execute raw queries by passing your Kysely instance to .execute like this: ```ts...
Jump to solution
2 Replies
Solution
Igal (mobile)
Igal (mobile)2y ago
Hey 👋 You can execute raw queries by passing your Kysely instance to .execute like this:
await sql`create extension "uuid-ossp";`.execute(db)
await sql`create extension "uuid-ossp";`.execute(db)
mdthansil
mdthansilOP2y ago
Wow! Thanks man ❤️
Want results from more Discord servers?
Add your server