package
0.39.2
Repository: https://github.com/crewlinker/clgo.git
Documentation: pkg.go.dev

# Packages

Package clpgmigrate implements the postgres migration logic.
No description provided by the author
Package cltx is a small package for adding and retrieving pgx transactions from the context.

# Functions

ConnStringFromConfig turns the package configuration into a connection string.
ConnStringFromEnvironment turns the environment config and turns it into a connection string.
New inits a stdlib sql connection.
NewLogger inits a logger for pgx.
NewPool inits a raw pgx postgres connection pool.
NewReadOnlyConfig constructs a config for a read-only database connecion.
NewReadWriteConfig constructs a config for a read-write database connecion.
Provide configures the DI for providng database connectivity.
TestProvide configures the DI for a test environment.

# Constants

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

# Structs

Config configures the code in this package.
Logger is a pgx logger that uses a main zap logger for logging but will prefer using a context specific logger if it exists.

# Interfaces

Migrater implements a migtration strategy that can be run before the database connection (pool) is setup.

# Type aliases

ConfigKind is the kind of pgxpool config we are providing.