Skip to content

Commit

Permalink
Refactor hyperdrive create and update commands to match each other's …
Browse files Browse the repository at this point in the history
…behavior and address bug with individual parameters on creation (#7024)

* Refactor hyperdrive create and update commands to match each other's behavior and address bug with individual parameters on creation

* fix snapshots

---------

Co-authored-by: emily-shen <[email protected]>
  • Loading branch information
xortive and emily-shen authored Oct 29, 2024
1 parent 038fdd9 commit bd66d51
Show file tree
Hide file tree
Showing 8 changed files with 836 additions and 567 deletions.
7 changes: 7 additions & 0 deletions .changeset/wrangler-hyperdrive-create-params-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": patch
---

fix: make individual parameters work for `wrangler hyperdrive create` when not using HoA

`wrangler hyperdrive create` individual parameters were not setting the database name correctly when calling the api.
7 changes: 7 additions & 0 deletions .changeset/wrangler-hyperdrive-create-update-refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": patch
---

refactor: use same param parsing code for `wrangler hyperdrive create` and `wrangler hyperdrive update`

ensures that going forward, both commands support the same features and have the same names for config flags
7 changes: 7 additions & 0 deletions .changeset/wrangler-hyperdrive-update-support-conn-string.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": minor
---

feature: allow using a connection string when updating hyperdrive configs

both `hyperdrive create` and `hyperdrive update` now support updating configs with connection strings.
Loading

0 comments on commit bd66d51

Please sign in to comment.