Awesome new SQL syntax - for developers
forr.st
forr.st
You're suggesting a shorthand for SQL. Forgive me if I assumed you were trying to simplify something you see as too verbose and complex.
Any business analyst worth its salt understand and can write at least simple SQL (to pull the data from database).
But even if business folks on your current project do not care about understanding SQL,your next project would have such people. So it would be very helpful if SQL version you have experience with is business-friendly.
There was a significant effort to push this, and it was only successful because it was embedded into the dev environment of the enterprise software.
Great idea, but the many different versions of SQL syntax will be a pain to properly implement. I'd suggest staying with a single DB engine, then branching to others.
With this, you have even less muscle memory, since maybe one hobby project you work on will use it, making recall, comprehension, and debugging that much more difficult.
Examples: http://sequel.rubyforge.org/rdoc/files/doc/querying_rdoc.htm...
:table(id=1) => SELECT * FROM table WHERE id = 1
Hadn't thought about mutation, only selecting though.I wonder if there's more to be gained by developing shorthand for more complex bits of SQL. For example, I've always been annoyed by the group by syntax, which seems redundant since the SQL interpreter should be able to determine which SELECT columns to group by (all columns that aren't aggregate functions).