Lurker News

Comments (323) 88 threads

Earlier comments
vander_elst1 reply#
How does this compare against neo4j? When should I choose one instead of the other?
thejosh1 reply#
Looks great, but the example for SQL looks kind of bad. Is that how pg does things? I thought "modern SQL" used CTEs and other fun features, or this that not a thing for pg as much as say snowflake?
wafer-bw1 reply#
Yea the SQL example looks like the intentionally made it way worse than it needed to be...
rakibtg1 reply#
> EdgeDB is built on top of Postgres

How it is a new database? Or an advanced orm?

colinmcd#
We're working on a more comprehensive explanation of why EdgeDB isn't an ORM. Does EdgeDB do "object-relational mapping" under the hood — absolutely. The reason we try to distance ourselves from the category of ORMs is that the term "ORM" comes with a big bag of preconceptions that don't apply here. EdgeDB has:

- Full schema model with indexing, constraints, defaults, computed properties, stored procedures
- A query language that replaces SQL. If there's something you can do in SQL that isn't possible in EdgeQL, it's a bug. Most ORMS provide some sort of language-specific API for writing queries and generating SQL under the hood—that's dramatically different than providing a new query language.
- A full type system, grammar, set of functions and operators, etc. A set theoretic basis for all expressions in EdgeQL. https://www.edgedb.com/docs/edgeql/sets
- A set of drivers for different languages that implement our binary protocol.
EdgeDB is a new abstraction built on a lower-level abstraction: Postgres. Both indubitably fit any reasonable definition of "database".

Load more comments