Skip to content

Commit 444d3e5

Browse files
dario-piotrowiczkodster28
authored andcommitted
add hyperdrive bindings to the getPlatformProxy supported bindings list (#16706)
--------- Co-authored-by: Kody Jackson <[email protected]>
1 parent 6ad4f04 commit 444d3e5

File tree

1 file changed

+9
-0
lines changed
  • src/content/docs/workers/wrangler

1 file changed

+9
-0
lines changed

src/content/docs/workers/wrangler/api.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,15 @@ The bindings supported by `getPlatformProxy` are:
376376

377377
* [D1 database bindings](/d1/build-with-d1/d1-client-api/)
378378

379+
* [Hyperdrive bindings](/hyperdrive)
380+
381+
:::note[Hyperdrive values are simple passthrough ones]
382+
383+
Values provided by hyperdrive bindings such as `connectionString` and `host` do not have a valid meaning outside of a `workerd` process.
384+
This means that Hyperdrive proxies return passthrough values, which are values corresponding to the database connection provided by the user. Otherwise, it would return values which would be unusable from within node.js.
385+
386+
:::
387+
379388
* [Workers AI bindings](/workers-ai/get-started/workers-wrangler/#2-connect-your-worker-to-workers-ai)
380389

381390
<Render file="ai-local-usage-charges" product="workers" />

0 commit comments

Comments
 (0)