Live data from Hacker News

EdgeDB 2.0

edgedb.com

101–110 of 150 posts

Re: EdgeDB 2.0

#101

I just took a look at the quickstart guide. The way the code snippets are implemented is gorgeous. They are syntax highlighted, are formatted/indented exactly as they would be in the terminal, line breaks are indented correctly but css is used to make them easily copy/pastable without including any line numbers/indentation characters. Such a delight. Such focus on details. Makes me really confident in the rest of the…

Finally somebody compliments that! Jokes aside, thank you!

Re: EdgeDB 2.0

#102
post #2

EdgeDB co-founder and CEO here. Ask me anything. We are streaming EdgeDB 2.0 launch event right now, join here: https://www.youtube.com/watch?v=1jloGHV31Ow

In a recent post here on HN, Shipping Multi-Tenant SaaS Using Postgres Row-Level Security [1], comments indicated gaps in PostgreSQL's RLS implementation, specifically for views (at least until PG15). I suppose EdgeQL is compiled directly to full SQL statements and doesn't utilize views, so this issue in particular may not affect EdgeDB. Does EdgeDB implement object-level access control on top of PostgreSQL's RLS? Ha…

EdgeDB does not use Postgres RLS, access rules are injected into every query by the query compiler instead. This side-steps the RLS gotchas and limitations (RLS does not allow aggregates in rules, EdgeDB does), but also yields somewhat better query performance.

Re: EdgeDB 2.0

#103
Will there ever be a full golang library with a query builder or codegen? Something along the lines of entgo perhaps?

Re: EdgeDB 2.0

#104

Will there ever be a full golang library with a query builder or codegen? Something along the lines of entgo perhaps?

The Go client implements the full client API, but yeah, it lacks the query building capability. We want all of our client APIs to have it; it's a matter of time, but I don't have a concrete ETA on when we get to it. Hopefully in the coming months. Here's a blog post by one of our users and it has some feedback on edgedb-go: https://divan.dev/posts/edgedb/

Re: EdgeDB 2.0

#106
Congrats. EdgeDB is really a game changer.

One thing I'm excited about is a framework that uses EdgeDB instead of ORM+SQL. This would make the framework itself leaner and lead to writing less code since the db can do so much more!

Re: EdgeDB 2.0

#107

Congrats. EdgeDB is really a game changer. One thing I'm excited about is a framework that uses EdgeDB instead of ORM+SQL. This would make the framework itself leaner and lead to writing less code since the db can do so much more!

Thanks! Depends on what kind of frameworks you like. EdgeDB+Next.js or EdgeDB+Flask are very pleasant to use already. But there's no heavyweight one like Django or RoR just yet.

Re: EdgeDB 2.0

#109

I couldn’t get past the lack of `SELECT *` support last time I played with this, but looking forward to trying it again!

We'll have that in 3.0; we're shooting for a more advanced splat-like syntax. Simple * wouldn't cut it because one of the principals of EdgeQL is to fetch only what you need, aiming for efficiency. That said, our UI repl has autocomplete and a `*` option in it, that expands it to all fields. We might implement something similar in the command-line REPL too.
Post reply on HN