Error: this.client.prepare is not a function
I am trying to build a project using Bun, Hono and Drizzle.
When i am starting the project with this piece of code :
I am encountering this error :
I've run the
drizzle-kit generate:pg
command before and I've checked my connection string many times
Thank you for your help 🙂kareem7484•138d ago
I had the same issue and it was because I did not use the right import for drizzle. Make sure that the import "import {drizzle} from 'drizzle-orm/d1'"are for the right db. In this case, Cloudflare D1
is for sql-lite and not postgres.
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.4KMembers
View on DiscordWant results from more Discord servers?
More Postspg: introspect failsSo I have some tables that do not have a primary key constraint (by design) and it seems that drizzlclient connection refusedI'm using bun.
I was able to get the pool connection working, but the same connection configuratioRunning migrations in server-less (edge) land??According to the docs:
```
// this will automatically run needed migrations on the database
await mIs there any way to call drizzle-kit with the new node --env-file=.env argument?Hey, since node supports env files since pretty recently, it would be nice if we could ditch dotenv.