← Back to context

Comment by klysm

5 years ago

I believe this is the right way to solve the ergonomic issues SQL has. Once you have something like this though I think there is a real risk of it becoming more than just a sugar/ergonomics layer where it’s trying to optimize or rewrite queries. Perhaps the write approach is to take a similar stance to the TypeScript compiler and draw a line in the sand.

Also I like the syntax for defining the schema - it reminds me of GraphQL.

> I think there is a real risk of it becoming more than just a sugar/ergonomics layer

I'm not sure it's actually a risk. The improvements to optimization in C compilers have benefitted everyone, though it took C a long while to be better at it than humans. I think the same idea applies here, as long as we choose our abstractions and optimizations carefully.

> it reminds me of GraphQL

Good catch, GraphQL has been one of my inspirations.