frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: sqlc-gen-sqlx, a sqlc plugin for generating sqlx Rust code

https://github.com/mathematic-inc/sqlc-gen-sqlx
1•jrandolf•1h ago
`sqlc-gen-sqlx` is a `sqlc` (https://sqlc.dev) plugin that generates `sqlx`-oriented Rust code from annotated SQL queries.

The generated API is intentionally small:

- a `const SQL`

- row structs for `:one` and `:many`

- params structs when a query has multiple parameters

- methods on `Queries<E>` that work with `&PgPool`, `&mut PgConnection`, or `&mut Transaction`

Current scope is PostgreSQL. It supports the usual `sqlc` query annotations, plus enums, composite types, batch queries, `COPY FROM`, `sqlc.slice()`, `sqlc.embed()`, and type overrides.

Comments

leeknoww•1h ago
How does this handle prepared statement caching compared to writing sqlx queries directly? Been burned before by N+1 prepared statement creation in high-throughput services. Also curious if there's a migration story since sqlc plugins are relatively new, did you hit any gotchas moving existing sqlx codebases over?
jrandolf•1h ago
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

Caffeine, cocaine, and painkillers detected in sharks from The Bahamas

https://www.sciencedirect.com/science/article/abs/pii/S0269749126001880
1•LostMyLogin•7m ago•0 comments

MRRescue

https://www.mrrescue.pro/
1•donihernandez•10m ago•0 comments

The problematic contradictions of OpenAI's "Industrial Policy» document

https://kladd.pappmaskin.no/2026/04/10/the-contradictions-of-openais-document-industrial-policy-f...
1•mskogly•14m ago•1 comments

Opus 4.6 hallucinates twice as more today than when it released

https://www.bridgebench.ai/hallucination
4•jiwidi•15m ago•1 comments

GPS Explained (2022)

https://ciechanow.ski/gps/
1•gdevillers•16m ago•0 comments

Forgejo monthly report – March 2026

https://forgejo.org/2026-03-monthly-report/
1•birdculture•16m ago•0 comments

Levels of AI Adoption for Project Managers

https://locastic.com/blog/the-10-levels-of-ai-adoption-for-project-managers
1•locastica•17m ago•0 comments

Debian 12 Server Guides

https://docs.bworm.us/
1•steelsmiley•22m ago•0 comments

Mhm AGI on a Docker Compose?

1•Kushvinth•23m ago•0 comments

That's a Skill Issue

https://blog.jim-nielsen.com/2026/skill-issue/
1•mc-serious•24m ago•0 comments

Gen Z fearful AI will take their job they're sabotaging company's AI rollout

https://fortune.com/2026/04/08/gen-z-workers-sabotage-ai-rollout-backlash/
2•alberto_yaakov•25m ago•1 comments

India's Navigation System Faces Operational Challenge After Atomic Clock Failure

https://swarajyamag.com/tech/indias-regional-navigation-system-navic-faces-operational-challenge-...
1•KitN•26m ago•0 comments

Tracking down a 25 percent LLVM RISC-V regression

https://blog.kaving.me/blog/tracking-down-a-25-regression-on-llvm-risc-v/
1•fork-bomber•27m ago•0 comments

Constellations

https://www.technologyreview.com/2026/04/10/1135106/jeff-vandermeer-constellations-science-fiction/
1•Kaibeezy•29m ago•0 comments

Show HN: Amber, a capability-based runtime/compiler for agent benchmarks

https://github.com/RDI-Foundation/amber/
1•_nhynes•33m ago•0 comments

SQL Has Problems. We Can Fix Them: Pipe Syntax in SQL (2024)

https://research.google/pubs/sql-has-problems-we-can-fix-them-pipe-syntax-in-sql/
1•mpweiher•34m ago•0 comments

Show HN: GitBalance – a GitHub-style graph to balance work and health

https://gitbalance.com
1•windystockholm•37m ago•0 comments

A Terminal UI (TUI) Alternative to GHelper for Asus ROG / TUF Laptops on Linux

https://github.com/Ichihiroy/ghelper-for-linux
1•ichihiroy•43m ago•0 comments

The pros and cons of stretch goals

https://www.economist.com/business/2026/04/09/the-pros-and-cons-of-stretch-goals
2•andsoitis•47m ago•0 comments

Pix: How Brazil Built the Perfect Payment System [video]

https://www.youtube.com/watch?v=F_5EADTwsis
2•rzk•51m ago•0 comments

Oracle gave its new CFO $26M in stock after firing up to 30k workers

https://moneywise.com/news/top-stories/oracle-gave-its-new-cfo-26m-in-stock-after-firing-up-to-30...
2•robtherobber•54m ago•0 comments

Data breach at European fitness chain Basic-Fit [pdf]

https://corporate.basic-fit.com/docs/Basic-Fit%20informs%20members%20of%20an%20unauthorised%20dat...
2•lode•58m ago•0 comments

Hybrid search (BM25/vectors/RRF) barely improved over pure semantic

1•pjmalandrino•58m ago•0 comments

NavIC's Clock Crisis, and the Indian Clocks That Could Fix It

https://swarajyamag.com/technology/navics-clock-crisis-and-the-indian-clocks-that-could-fix-it
1•robertlangdon•59m ago•0 comments

Show HN: Show HN:CryptographicTimestamps4 human testimony(2HTMLfiles,noserver)

https://github.com/Bardockthegreat/thomas-more-witness-protocol-
1•Bardockthegreat•1h ago•0 comments

Tell HN: AI is bringing back waterfall, here's what I've found

1•keepamovin•1h ago•2 comments

A Git helper tool that breaks large merges into parallelizable tasks

https://github.com/mwallner/mergetopus
3•schusterfredl•1h ago•1 comments

If You're Only Running One Claude Code Session, You're Not Going Fast Enough

https://www.scape.work/blog/you-are-not-going-fast-enough
1•bgnm2000•1h ago•1 comments

We built a Green Screen Remover tool to automate batch green screen removal

https://ugcmaker.io/green-screen-remover
1•MiaTaylor•1h ago•0 comments

Ask HN: How are you handling runtime security for your AI agents?

2•saranshrana•1h ago•1 comments