drizzle-team / drizzle-team/drizzle-orm
[BUG]: running bunx --bun drizzle-kit <pull/studio> fails to detect bun:sqlite driver
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Report hasn't been filed before.
- [x] I have verified that the bug I'm about to report hasn't been filed before.
### What version of `drizzle-orm` are you using?
0.41.0
### What version of `drizzle-kit` are you using?
0.30.6
### Other packages
bun@1.2.8
### Describe the Bug
I have an existing sqlite database using `bun:sqlite` and wanted to start using drizzle.
when i try to pull in the schema from the existing database using:
```sh
bunx --bun drizzle-kit pull
```
I get the following error:
```
No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users//drizzle.config.ts'
Pulling from ['public'] list of schemas
Please install either 'better-sqlite3' or '@libsql/client' for Drizzle Kit to connect to SQLite databases
```
running `bunx --bun drizzle-kit export` works fine, but eg. `bunx --bun drizzle-kit studio` gives me roughly the same issue
I would expect it to use the driver from `bun:sqlite` when running in bun, but apparently it does not pick that up correctly
Contributor guide
Assessment
This issue has not been assessed yet.