I'm trying to get my local d1 database
I'm trying to get my local d1 database from one local project to another local project, i.e., from one dir to another dir without re-running the
wrangler d1 execute --local --file=.sql
approach. I thought I could just move the .wrangler/state/v3/d1
dir over to another dir and spin things up but that did not work. Is there some other approach I could use?
My problem is that I use a separate worker to load portions of the database and I was hoping to avoid moving that worker and its config over to another dir temporarily to get the database fully loaded.
Thanks!2 Replies
Thanks to some help from #d1-beta , I learned there are
.sqlite
files deep in the .wrangler
folder that can simply be dumped using normal sqlite3 .dump
and then loaded into any local D1 the normal wrangler d1 execute --file
way.Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View