Go Package database: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
* [[PostgreSQL_Support_in_Go#Libraries|PostgreSQL Support in Go]] | * [[PostgreSQL_Support_in_Go#Libraries|PostgreSQL Support in Go]] | ||
= | =<tt>database/sql</tt>= | ||
Go has built-in database support in its <code>database/sql</code> library, but it's quite generic since it has to be able to work uniformly with many different database platforms. For applications that are connecting to a specific database, it makes sense to use a specialist library. For PostgreSQL there is [[Jackc/pgx|jackc/pgx]]. |
Revision as of 21:25, 21 May 2024
External
Internal
database/sql
Go has built-in database support in its database/sql
library, but it's quite generic since it has to be able to work uniformly with many different database platforms. For applications that are connecting to a specific database, it makes sense to use a specialist library. For PostgreSQL there is jackc/pgx.