Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-pg/pg
/ Pool
Method
Pool
export_test.go:5–7 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3
import
"github.com/go-pg/pg/v10/internal/pool"
4
5
func
(db *DB) Pool() pool.Pooler {
6
return
db.pool
7
}
8
9
func
(ln *Listener) CurrentConn() *pool.Conn {
10
return
ln.cn
Callers
10
db_test.go
File · 0.80
race_test.go
File · 0.80
tx_test.go
File · 0.80
TestPoolReusesConnection
Method · 0.80
TestPoolMaxSize
Method · 0.80
TestCloseClosesAllConnections
Method · 0.80
TestClosedDB
Method · 0.80
TestClosedListener
Method · 0.80
TestClosedTx
Method · 0.80
TestClosedStmt
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected