I have a pages app with functions in one dir, and workers in another -- how can I get them to share
I have a pages app with functions in one dir, and workers in another -- how can I get them to share the local d1 database?
wrangler pages dev ... --d1=DB and set preview_database_id="DB" in your wrangler.toml so that the wrangler d1 commands use the same database locally



unknown and then another type. If it won't cast without the unknown then it's likely something else is wrong. 
run shouldn't actually return anything (https://developers.cloudflare.com/d1/platform/client-api/#await-stmtrun) but iirc it's broken and does.
D1_ERROR: Error: SQL execute error: Execute returned results - did you mean to call query? but it's probably going to be a pain to return to it's original behaviour without breaking projects

wrangler pages dev ... --d1=DBpreview_database_id="DB"unknownD1_ERROR: Error: SQL execute error: Execute returned results - did you mean to call query?