if i am already installing cloudflare-adaptor in sveltekit why do i need to run cli cmd wangle xyz .
if i am already installing cloudflare-adaptor in sveltekit why do i need to run cli cmd wangle xyz .... then do all the gymnastics to get it to work
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 = 1

const lastStream = await env.DB.prepare(
)
.bind(userId)
.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