We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
use Red; model Bla { has Int $.a is id; has Int $.b is column } my $*RED-DB = database "SQLite"; Bla.^create-table; Bla.^create: :a($_), :b($_ * [1, 2, 3].pick) for ^100 + 1; my $*RED-DEBUG = True; say Bla.^all.classify({ .b / .a }).keys
SQL : SELECT b / a as "data" FROM bla GROUP BY b / a (1 2 3)