Why doesn't the hyperdrive binding contain the connection details without having to call `.get()` ?

Why doesn't the hyperdrive binding contain the connection details without having to call .get() ? This is adds significant friction to the DX.

We're using a lot of RCP/Service workers, and it would be so natural to configure/initialize database stuff in a constructor and attach it to this.
Then every public method that could be invoked via RPC could simply use this.db.... But because .get() is async, we need to do this dance in every public method.
Was this page helpful?