News for hackers. Stuff that matters.
Re:Show HN: sqlc-gen-sqlx, a sqlc plugin for generating sqlx... by jrandolf on Monday April 13, 2026 @02:58AM (#47748608)
This plugin uses sqlx underneath which handles prepared statement caching. Regarding migration, we just used a coding agent to migrate our database infrastructure to it. It takes <20 minutes and remember this really only helps with static queries. We do support sqlc's dynamic queries though.

Tip: you can use case statements and etc. to create static queries even when you have conditionals.

Also, read https://news.ycombinator.com/newsguidelines.html#generated

There are no comments on this comment yet.