workers-qb icon indicating copy to clipboard operation
workers-qb copied to clipboard

Accessing D1 `meta.rows_written`

Open darg-2036 opened this issue 1 year ago • 0 comments

The D1 docs state that a D1Result contains a meta.rows_written field: https://developers.cloudflare.com/d1/build-with-d1/d1-client-api/#return-object

The D1Result type in this library only exposes meta.changes:

https://github.com/G4brym/workers-qb/blob/12daee3c82ac93831d95540c8822dfc33542a2a7/src/databases/d1.ts#L35

Is this an undocumented property of Cloudflare's D1Result? Does it behave the same as rows_written? If not it would be great if that was exposed as well.

darg-2036 avatar Jul 14 '24 02:07 darg-2036