|
|
|
|
|
by quizotic
2983 days ago
|
|
Well ... I kinda like the query syntax's ability to traverse relationships, nest objects/sub-headings, and apply filters at the level of projected expressions! This has been done before of course, but I'm not sure I've seen this combination of syntax on an RDB before. It's certainly easier to read and write that a bunch of outer joins. What would be nice to know is whether this can work on top of an existing PG database, providing easier syntax. While their last example makes _sense_: open_prs := User.<assignee[IS PullRequest] {
title
} FILTER .status = 'Open'
I don't find it easy to read/understand. If the [bracketed expression] acts as a filter, why not: open_prs := User.<assignee[IS PullRequest AND
.status='open'].title
which preserves the nice dot-chaining for link traversal. |
|
That would require introspecting arbitrary relational schemas and trying to represent them as an object graph. I don't think something like this can be done automatically and reliably.
That said, we have a tentative plan to introduce support for external databases (through FDWs, so not necessarily Postgres). The mapping specification would have to be explicit though.