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](https://cdn.answeroverflow.com/1150159016899653642/image.png)
29 Replies
anyone ðŸ˜
Did this code run perfectly in node?
Yes
@angelelz
does mysql driver just not function in bun?
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)
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
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.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
isn’t it
bunx
not bun x
It works on my machine 😅
![No description](https://cdn.answeroverflow.com/1150519152797290556/CleanShot_2023-09-10_at_21.51.432x.png)
Do you have a drizzle.config.ts somewhere?
bunx is like npx, afaik
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?
deno better AHEM
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
GitHub
drizzle-playground/drizzle.config.mysql.ts at main · rphlmr/drizzle...
Contribute to rphlmr/drizzle-playground development by creating an account on GitHub.
That’s interesting
Are you using planetscale?