mirror of https://github.com/jackc/pgx.git
Tweak Conn comment
parent
0c07df20b2
commit
99c54fbec0
5
conn.go
5
conn.go
|
@ -35,9 +35,8 @@ type ConnConfig struct {
|
||||||
PreferSimpleProtocol bool
|
PreferSimpleProtocol bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// Conn is a PostgreSQL connection handle. It is not safe for concurrent usage.
|
// Conn is a PostgreSQL connection handle. It is not safe for concurrent usage. Use a connection pool to manage access
|
||||||
// Use ConnPool to manage access to multiple database connections from multiple
|
// to multiple database connections from multiple goroutines.
|
||||||
// goroutines.
|
|
||||||
type Conn struct {
|
type Conn struct {
|
||||||
pgConn *pgconn.PgConn
|
pgConn *pgconn.PgConn
|
||||||
config *ConnConfig // config used when establishing this connection
|
config *ConnConfig // config used when establishing this connection
|
||||||
|
|
Loading…
Reference in New Issue