Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMysqlConnector ¶
func NewMysqlConnector(getConfigFunc GetMysqlConfigCallback, shouldReconfigureCallback ShouldReconfigureCallback) driver.Connector
NewMysqlConnector will create a new driver.Connector for a MySQL database
func NewPostgresConnector ¶
func NewPostgresConnector(getConfigFunc GetPostgresConfigCallback, shouldReconfigureCallback ShouldReconfigureCallback) driver.Connector
NewPostgresConnector will create a new driver.Connector for PostgreSQL
Types ¶
type GetMysqlConfigCallback ¶
A function signature for a callback function that gets the MySQL connection configuraiton.
type GetPostgresConfigCallback ¶
type GetPostgresConfigCallback func(ctx context.Context) (config pgx.ConnConfig, opts []stdlib.OptionOpenDB, err stackerr.Error)
A function signature for a callback function that gets the Postgres connection configuration.
type ShouldReconfigureCallback ¶
A function signature for a callback function that determines whether the connection configuration should be reconfigured for the next connection.
Click to show internal directories.
Click to hide internal directories.