News for hackers. Stuff that matters.
Re:Sqlc: Data access simplified. Throw away your ORM by bvrmn on Wednesday December 04, 2024 @02:10AM (#42315130)
Numbered parameters become fragile quite fast for even simple queries. Basically you couldn't safely use query until carefully revising a template. A template change could potentially break existing queries. It's kinda scary.

If library supports named parameters they should be used by default in examples.

Re:Sqlc: Data access simplified. Throw away your ORM by dhfuuvyvtt on Tuesday December 10, 2024 @04:57AM (#42375371)
Its probably to be consistent across each platform, MySQL doesn't support named queries so they are likely avoiding using them for that reason, either that or the docs are old. :)