Changelog going out soon, but for those here: * D1's `.raw()`, `.all()` and `.run()` query statemen
Changelog going out soon, but for those here:
- D1's
,.raw()
and.all()
query statement methods (https://developers.cloudflare.com/d1/build-databases/query-databases/#query-statement-methods) have been updated to reflect their intended behaviour and improving compatibility with ORMs..run()
now correctly returns results an array of arrays, allowing the correct handling of duplicate column names (such as when joining tables), as compared to.raw()
, which is unchanged and returns an array of objects. To include an array of column names in the results when using.all()
, use.raw()
..raw({columnNames: true})
no longer incorrectly returns a.run()
and instead returns aD1Result
(https://developers.cloudflare.com/d1/build-databases/query-databases/#return-object) as originally intended and documented.D1ExecResult
.raw() to return an array of objects.




