You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fernando Correa de Oliveira edited this page Jan 2, 2019
·
3 revisions
With the same idea from map grep now its possible to use CASE/WHEN directly from .map. For example:
use Red;
model M is table<mmm> {
hasStr$.ais column;
hasInt$.bis column;
hasStr$.cis column;
}
my$*RED-DB= database "SQLite";
M.^create-table;
say M.^all.map: { .b <10??.a !!.c }
that runs:
SELECT
CASE
WHEN b <10 THEN a
ELSE c
END
as"data"FROM
mmm