What about using the export api used in the Wrangler CLI? https://github.com/cloudflare/workers-sdk/
What about using the export api used in the Wrangler CLI?
https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/src/d1/export.ts#L145
https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/src/d1/export.ts#L145
