I was using D1 for the first time in a while and came across a D1 error that was confusing: ```types
I was using D1 for the first time in a while and came across a D1 error that was confusing:
This doesn't work because
Unfortunately, all that's thrown is
Are there some docs that help explain the JS API? Or maybe some docstrings could be added to the types to help explain when to use each method?
This doesn't work because
run() apparently isn't allowed for SELECT (but I forgot I needed to use all() or first()).Unfortunately, all that's thrown is
D1_ERROR (with nothing in e.cause.)Are there some docs that help explain the JS API? Or maybe some docstrings could be added to the types to help explain when to use each method?