4 ms·
> What would be nice to know is whether this can work on top of an existing PG database, providing easier syntax. That would require introspecting arbitrary re
by RedCrowbar 8y ago
> What would be nice to know is whether this can work on top of an existing PG database, providing easier syntax.
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 8y agoGlad to hear about the FDWs ... but wouldn't foreign keys be your friend here? What else would you need, really, to layer this on an existing DB?
- RedCrowbar 8y agoIf your schema consistently uses synthetic primary keys, maybe like the ones produced by some active record ORMs, then, yes. Theoretically, we could make an adapter that would make EdgeDB "understand" Django schemas, for example.