package
2.0.1+incompatible
Repository: https://github.com/davepgreene/go-db-credential-refresh.git
Documentation: pkg.go.dev

# Functions

CreateDriver creates a Driver.
MysqlFormatter formats a connection string for the go-sql-driver/mysql lib NOTE: Currently only supports TCP connections.
NewConnector creates a new connector from a store.
PgFormatter formats a connection URI for the pq and pgx lib.
PgKVFormatter formats a connection string in the K/V format.
Register registers a DB driver Note: Register behaves similarly to database/sql.Register except that it doesn't panic on duplicate registrations, it just ignores them and continues.

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint:gochecknoglobals.
nolint:gochecknoglobals.

# Structs

Config is a struct that holds non-credential database configuration.
Connector represents a driver in a fixed configuration.
Driver carries information along with a database/sql/driver required for creating a Connector.

# Interfaces

Credentials represents an abstraction over a username and password.
Store represents a mechanism for retrieving Credentials.

# Type aliases

AuthError is a func to evaluate the DB-specific error string that indicates an authentication error.
Formatter takes connection string components and assembles them into an implementation-specific conn string/DSN.