Go Package database: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
* [[Go_Language_Modularization#database|Standard Library]]
* [[Go_Language_Modularization#database|Standard Library]]
* [[PostgreSQL_Support_in_Go#Libraries|PostgreSQL Support in Go]]
* [[PostgreSQL_Support_in_Go#Libraries|PostgreSQL Support in Go]]
=<tt>database</tt>=


=<tt>database/sql</tt>=
=<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]].
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:33, 21 May 2024

External

Internal

database

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.