Hi, I’m trying to use D1 in conjunction with Durable Objects and found that the env binding for D1 in a durable object is different form what’s expected.
For example if I have a D1 database bound as
MY_DATABASE and with a module worker I will be able to access it via
env.MY_DATABASE. However in a durable object
env.MY_DATABASE is undefined, instead the database is bound to
Not sure if this is a known problem with D1 still in alpha but I didn’t find reference to this behaviour anywhere so I thought I mention this here.