Page MenuHomeDevCentral

Fetch database rows as both an associative and a numeric array
ClosedPublic

Authored by dereckson on Oct 19 2025, 22:03.
Tags
None
Referenced Files
F23664236: D3779.id9789.diff
Thu, Feb 5, 23:15
F23663419: D3779.id9790.diff
Thu, Feb 5, 23:08
F23650083: D3779.id9789.diff
Thu, Feb 5, 21:29
F23635141: D3779.id9789.diff
Thu, Feb 5, 19:46
F23635020: D3779.id9790.diff
Thu, Feb 5, 19:45
F23599894: D3779.id9790.diff
Thu, Feb 5, 15:03
F23566346: D3779.id9790.diff
Thu, Feb 5, 11:04
F23552791: D3779.id9790.diff
Thu, Feb 5, 09:26
Subscribers
None

Details

Summary

By default, keruald/database use associative array,
but the Obsidian code handle count(*) like this:

return ($row[0] == 1);

An alternative could be to use queryScalar() instead of query() for those.

Diff Detail

Repository
rOBSIDIAN Obsidian Workspaces
Lint
No Lint Coverage
Unit
No Test Coverage
Branch
main
Build Status
Buildable 6050
Build 6334: arc lint + arc unit