Documentation
¶
Overview ¶
Package riverpgxv5 provides a River driver implementation for Pgx v5.
This is currently the only supported driver for River and will therefore be used by all projects using River, but the code is organized this way so that other database packages can be supported in future River versions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is an implementation of riverdriver.Driver for Pgx v5.
func New ¶
New returns a new Pgx v5 River driver for use with river.Client.
It takes a pgxpool.Pool to use for use with River. The pool should already be configured to use the schema specified in the client's Schema field.
The pool must not be closed while the associated client is running (not until graceful shutdown has completed).