Prisma doesn’t yet support D1, primarily because Prisma doesn’t run in edge serverless environments
Prisma doesn’t yet support D1, primarily because Prisma doesn’t run in edge serverless environments like Workers (or Bun, or Deno) yet.

wrangler dev I just lose hot reloading making it basically pointless to use from a DX perspective. Am I missing something? Or am I expected to rebuild the application over and over to test..?const lastStream = await env.DB.prepare(
SELECT *
)
.bind(userId)
.first().first() returns the first result after fetching the entire query result (https://github.com/cloudflare/workerd/blob/main/src/cloudflare/internal/d1-api.ts#L231-L257), explicitly adding LIMIT 1 can be significantly more efficient if you know there are lots of results
UPDATE daily SET schedule = json_insert(schedule,$[json_array_length(schedule)],'16.00') WHERE day = 1wrangler devconst lastStream = await env.DB.prepare(
)
.bind(userId)
.first().first()LIMIT 1UPDATE daily SET schedule = json_insert(schedule,$[json_array_length(schedule)],'16.00') WHERE day = 1UPDATE daily SET schedule = json_insert(schedule,'$[' || json_array_length(schedule) || ']','16.00') WHERE day = 1