workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

D1 `execute --local` support

Open geelen opened this issue 3 years ago • 2 comments
trafficstars

Making it possible to use the same .sql files to bootstrap your local wrangler dev --local as production.

geelen avatar Aug 11 '22 09:08 geelen

⚠️ No Changeset found

Latest commit: 234d5e9c52b85155b555f3ba567dc83d5bc169fa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Aug 11 '22 09:08 changeset-bot[bot]

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2868511756/npm-package-wrangler-1658

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1658/npm-package-wrangler-1658

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2868511756/npm-package-wrangler-1658 dev path/to/script.js

github-actions[bot] avatar Aug 11 '22 09:08 github-actions[bot]

Codecov Report

Merging #1658 (234d5e9) into d1 (ad344cc) will decrease coverage by 0.75%. The diff coverage is 25.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##               d1    #1658      +/-   ##
==========================================
- Coverage   78.80%   78.04%   -0.76%     
==========================================
  Files          99      102       +3     
  Lines        6318     6428     +110     
  Branches     1600     1628      +28     
==========================================
+ Hits         4979     5017      +38     
- Misses       1339     1411      +72     
Impacted Files Coverage Δ
packages/wrangler/src/d1/create.tsx 36.36% <ø> (ø)
packages/wrangler/src/d1/list.tsx 26.08% <ø> (+2.75%) :arrow_up:
packages/wrangler/src/dialogs.tsx 14.89% <0.00%> (-0.67%) :arrow_down:
packages/wrangler/src/pages/dev.tsx 21.85% <ø> (-0.43%) :arrow_down:
packages/wrangler/src/d1/utils.ts 11.76% <11.76%> (ø)
packages/wrangler/src/d1/execute.tsx 15.92% <13.26%> (-0.74%) :arrow_down:
packages/wrangler/src/d1/backups.tsx 26.76% <20.58%> (+7.91%) :arrow_up:
packages/wrangler/src/d1/delete.tsx 33.33% <23.52%> (+12.28%) :arrow_up:
packages/wrangler/src/d1/options.ts 33.33% <33.33%> (ø)
packages/wrangler/src/config/index.ts 91.75% <60.00%> (-1.73%) :arrow_down:
... and 4 more

codecov[bot] avatar Aug 16 '22 13:08 codecov[bot]

Goodbye to a bunch of hacky Node.js scripts I had!

GregBrimble avatar Aug 16 '22 14:08 GregBrimble