Hello. I have a question. How would you connect a local Cloudflare D1 DB through a script? This is
Hello. I have a question. How would you connect a local Cloudflare D1 DB through a script?
This is
Then, I'm executing this with
The app’s D1 has a “users” table that I created through the
I have only one D1 Database, and can confirm that the
Your help is appreciated!
This is
exec.ts, I will want to use this script for seeding against my local environment.Then, I'm executing this with
npx tsx exec.tsThe app’s D1 has a “users” table that I created through the
wrangler d1 execute command. The Miniflare in the exec.ts doesn't acknowledge the “users” table.I have only one D1 Database, and can confirm that the
.wrangler/state/v3/d1/miniflare-D1DatabaseObject has only one set of files.Your help is appreciated!














