DT
Drizzle Team•13mo ago
Headless

Bun with drizzle

I am attemtping to use bun with drizzle-kit and i Keep getting this error I am using planetscale mysql2 driver
No description
29 Replies
Headless
Headless•13mo ago
anyone 😭
Angelelz
Angelelz•13mo ago
Did this code run perfectly in node?
Headless
Headless•13mo ago
Yes @angelelz does mysql driver just not function in bun?
Angelelz
Angelelz•13mo ago
I want to test bun, I just haven't gotten to it yet. I just wanted to make sure you were not trying to run this code in the client (browser)
Headless
Headless•13mo ago
nah im not lol its being ran in WSL but i find this weird as the drizzle docs say everything can be installed with bun so why wouldnt drizzle-kit work
MAST
MAST•13mo ago
Do you need th x? I think bun drizzle-kit push:mysql should also work. Could be wrong though. Did this with sqlite a few weeks ago.
Headless
Headless•13mo ago
pushing does not work it does not matter how i do it its always the same error sqlite is also built into bun mysql isnt which i wonder if this is the reason for the problem
Screw
Screw•13mo ago
isn’t it bunx not bun x
rphlmr âš¡
rphlmr ⚡•13mo ago
It works on my machine 😅
No description
rphlmr âš¡
rphlmr ⚡•13mo ago
Do you have a drizzle.config.ts somewhere? bunx is like npx, afaik
NinjaBunny
NinjaBunny•13mo ago
I feel like you should also be wanting to just run the drizzle-kit command no? wont npx/bunx the most recent version of drizzle-kit from npm?
mavdotjs
mavdotjs•13mo ago
deno better AHEM
Headless
Headless•12mo ago
What driver are you using im assuming the mysql driver can I see your config file? because no matter what I do i constantly get the same error
Headless
Headless•12mo ago
That’s interesting Are you using planetscale?
Want results from more Discord servers?
Add your server