result.meta.duration and then the time for the D1 API call without your application code?
.json(), I will test without that - success can only be true in the TypeScript typingsnode_modules/@cloudflare/workers-types/index.d.tssuccess can only be true in the D1Result type, see D1UpstreamFailure:D1UpstreamFailure is this file. I'm using "@cloudflare/workers-types": "^4.20230814.0", will update4.20231002.0. @rozenmd Can you link me to this file?D1UpstreamFailure is in the binding rather than the types so the users don't see itsuccess is false for methods which don't return itsuccess is false for first. Does it throw an error, return null, etcsuccess is true on every call that returns it? I've been assuming if there's an upstream error it will throw--local

const response = await env.DB.prepare(`
UPDATE Promotions
SET content = ?, last_update_time = ?
WHERE promo_id = ?
`).bind(JSON.stringify(page), currentTimeInSeconds, page.id).run();interface D1UpstreamFailure {
results?: never
error: string
success: false
meta: Record<string, unknown>
}