> i am getting an error "env.DB.prepare(...).run is not a function" , **i logged env.DB and it is un
i am getting an error "env.DB.prepare(...).run is not a function" , i logged env.DB and it is undefined,
Right —
env.DB is undefined because you called it TEMPDB. How do you get from the D1 binding on env.TEMPDB to your own class?Can I suggest simplifying your code here? Call the methods on
env.TEMPDB directly vs. abstracting them - get it working first.


