News for hackers. Stuff that matters.
Re:Zig now has built-in HTTP server and client in std by impulser_ on Thursday May 18, 2023 @06:37PM (#35995191)
database/sql provides a generic interface for SQL which drivers use to build their libraries. You can switch from one postgres driver like pq to pgx easily because they both support database/sql.
Re:Zig now has built-in HTTP server and client in std by ibraheemdev on Thursday May 18, 2023 @07:28PM (#35995766)
Except pgx recommends using their native interface, not database/sql, for performance and extra features [0], so it's not that simple in practice.

[0]: https://github.com/jackc/pgx#choosing-between-the-pgx-and-da...