|
|
|
|
|
by unshavedyak
232 days ago
|
|
Oh man, PRQL looks so good. I just wish they had mutation in there too. I don't like the idea of swapping between PRQL and SQL, let alone some complex update statements where i'd rather write the query in PRQL. .. Yea you could argue they shouldn't be that complex for updates though heh. |
|
I haven't thought about DML too much but what I could envision is an approach like the Elm or React architecture where you specify a new state for a table as a PRQL query and then the compiler computes the diff and issues an efficient update.
For example
would be something like SQL: PRQL: Update is the trickiest to not have clunky syntax. For example what should the following look like?SQL:
I can think of `filter` followed by `append` or maybe a case statement but neither seems great.Any ideas?