D1 Database Binding Issue
XPost from d1-database
im on wrangler 3.5.1
TLDR
Ive created a binding named
Ive tried removed bindings, re-added, re-deployed still getting the same behavior:
I tried to reference that variable __D1_BETA_DB, but it tells me that there is no function prepare on it.
im expecting (and this was previous behavior) that a DB variable is hanging on the env that i can call prepare on.
im on wrangler 3.5.1
TLDR
Ive created a binding named
DB but all the env contains is __D1_BETA_DB that does not act like a db.Ive tried removed bindings, re-added, re-deployed still getting the same behavior:
__D1_BETA_ is being added as a prefix in the environment, but not binding named DBI tried to reference that variable __D1_BETA_DB, but it tells me that there is no function prepare on it.
im expecting (and this was previous behavior) that a DB variable is hanging on the env that i can call prepare on.