(no title)
quizotic | 8 years ago
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.
RedCrowbar|8 years ago
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.
quizotic|8 years ago
RedCrowbar|8 years ago