News for hackers. Stuff that matters.
Re:SQL language proposal: JOIN FOREIGN by exabrial on Thursday December 30, 2021 @04:55PM (#29741945)
I think this is an operator problem. You're using the wrong tool for the job.

TablePlus, SequelAce, the official MySQL client all support cntrl-space autocompletion. I wish we used Postgres, but I imagine the landscape is the same. The big box databases like Oracle, DB2 undoubtedly having this tooling as well.

That being said, here is our fk naming convention: `fk-asset_types->asset_categories` which pretty states what's going on and is easy to remember.

Re:SQL language proposal: JOIN FOREIGN by dolmen on Thursday December 30, 2021 @05:50PM (#29742503)
SQL is not only written in an SQL client. SQL is also written (and read from) embedded/mixed in an other programming language were tooling is not always available.

Having to know the names of foreign keys (in addition to the column names of the 2 tables) is adding more cognitive load. I don't think that is an improvement.

Re:SQL language proposal: JOIN FOREIGN by Latty on Thursday December 30, 2021 @06:39PM (#29742979)
At least when it comes to both JetBrains and VSCode, they can handle one language embedded in another. I'm kind of surprised there are environments that don't handle that these days.