raku-community-modules / DBIish

Database interface for Raku
89 stars 31 forks source link

$sth.allrows(:array-of-hash) not an exact replacement for $sth.fetchall_hashref('KEY') #206

Closed ancientwizard closed 3 years ago

ancientwizard commented 3 years ago

To get what the consumer wanted in the first case they must refactor the array into a hash Sometimes you want a hash-of-hashes => field-name-key

And yes this requires the consumer to be on their "A" game

ancientwizard commented 3 years ago

Not a bug; mostly a minor inconvenience.