Was wondering if connecting to the database via a url is possible?
Was wondering if connecting to the database via a url is possible?

RETURNING
9/13/23, 8:59 PM
bun:sqlite instead of better-sqlite3.waitUntil for the data insertion in request A and immediately redirect to request B, or do I have to wait until the insert is complete before redirecting to request B?await returns the data is inserted. D1 is strongly consistent - read-your-own-writes - from within the same Worker invocation.await RETURNINGError: D1_ERROR: Error: SQL execute error: Execute returned results - did you mean to call query?bun:sqliteconst d1_lookup_code = await c.env.DB.prepare(`SELECT id, program, details FROM my_codes WHERE code = ?`).bind(code).first();
await c.env.DB.prepare(`DELETE FROM my_codes WHERE code = ?`).bind(code).run();await c.env.DB.prepare(`DELETE FROM my_codes WHERE code = ? RETURNING *`).bind(code).run()await c.env.DB.prepare(`DELETE FROM my_codes WHERE code = ? RETURNING *`).bind(code).first()