Pg: [help] func Ping()

Created on 17 Jan 2019  路  1Comment  路  Source: go-pg/pg

how to check connection status,

something like Ping() func ?

Most helpful comment

db.Exec("SELECT 1") but that will test random connection in the pool.

>All comments

db.Exec("SELECT 1") but that will test random connection in the pool.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ValorVl picture ValorVl  路  3Comments

m-kad picture m-kad  路  3Comments

bobobo1618 picture bobobo1618  路  3Comments

rhymes picture rhymes  路  5Comments

Labutin picture Labutin  路  3Comments