News for hackers. Stuff that matters.
Re:Flyweight: A Node.js ORM Specifically for SQLite by siborg on Tuesday April 09, 2024 @08:04AM (#39978531)
Alias stars is a really nice feature.
Re:Flyweight: A Node.js ORM Specifically for SQLite by lf-non on Tuesday April 09, 2024 @10:31AM (#39979843)
I have come to believe that select * should only be used in exploratory SQL and never in application code.

I know a lot of devs treat database schemas as sacrosanct and try not to modify the schema much once created. However, I do like being able to iterate on schema quite a bit during early stages of application and in case of dot-star queries I often end up with either run time errors or type errors that are quite far from the query itself. So now I have settled on ensuring that all columns are always specified in queries originating from application code.