CurtTilmes / raku-dbsqlite

SQLite access for Raku
10 stars 4 forks source link

add query method .values #7

Open tbrowder opened 5 years ago

tbrowder commented 5 years ago

The query has a .value method for returning a single value when only one row is expected to satisfy the query.

Shouldn't there be an equivalent .values method returning an array of values when multiple rows are expected to be affected?

For example:

SELECT rowid FROM blah
ORDER BY rowid
CurtTilmes commented 5 years ago

Just say .query(...).arrays.flat?

tbrowder commented 5 years ago

Or is it "|@array"? Anyway, can that be mentioned in the README.md? Thanks.