5 ms·
> if SQL were built on YAML Actually that's pretty nice compared to what we actually got: https://schemahero.io/learn/tutorial/create-table/ https://schemaher
by bussierem 5y ago
> if SQL were built on YAML
Actually that's pretty nice compared to what we actually got:
https://schemahero.io/learn/tutorial/create-table/ https://schemahero.io/learn/tutorial/create-table/
- inshadows 5y agoThat airport example... not sure if trolling.
- luismedel 5y agoI find hilarious that they end writing what looks like an AST. In YAML. By hand.
- meepmorp 5y agoAm I alone in thinking SQL by itself is easier to understand and use than all indirection people like to stick on top of it?
- stack_framer 5y agoYou are not alone. I prefer handwritten SQL over abstractions like ORMs.
- notriddle 5y agoFor cases where the query is truly static, I prefer to just write SQL. Building SQL queries by concatenations strings, however, should get you arrested for negligence. If you need a query builder, then you need a query builder.
- ironmagma 5y agoSometimes you need a query builder but one is not available. Heck, last I checked, BigQuery didn’t even do string quoting for you.
- LaserToy 5y agoGiven it is hard to understand SQL once jt reaches 100-200 lines, anything that bloats it just pure evil :)
- sellyme 5y agoAs I continue exploring that site I'm becoming increasingly concerned that it might not be satire.
- Zababa 5y agoIt's at least a great way to present it, way better than the single line string I usually see