Pg: How i can get default db connection ?

Created on 5 Oct 2018  路  2Comments  路  Source: go-pg/pg

How i can extract from pg.DB default connection sql.DB from database/sql?

Most helpful comment

This is something that is needed. All unit testing libraries require sql.DB

All 2 comments

go-pg does not use sql.DB internally - it talks to PostgreSQL server directly.

This is something that is needed. All unit testing libraries require sql.DB

Was this page helpful?
0 / 5 - 0 ratings

Related issues

owentran picture owentran  路  6Comments

jayschwa picture jayschwa  路  4Comments

kieusonlam picture kieusonlam  路  6Comments

eicca picture eicca  路  3Comments

ValorVl picture ValorVl  路  3Comments