How do I load sqlite extensions for drizzle-kit?
In my code, when I want to use drizzle I am doing the following:
to test my application, I want to use drizzle-kit to create my database, so I created a drizzle.config.ts
but when I run
drizzle-kit push:sqlite
, I get SqliteError: near "(": syntax error
and I think this is because for some of my tables I have .default(sql`uuid_generate_v7()`) but that function only exists when the sqlite extension is loaded which it isnt when Im running drizzle kit1 Reply
nvm
i needed to surround the fucntion with
()