Documentation
¶
Overview ¶
Package database provides database connection management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Pool *pgxpool.Pool
Pool is the shared database connection pool used throughout the application.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Password string
DBName string
Host string
User string
SSLMode string
Schema string
Port int
}
Config contains values used to connect to the database.
func (*Config) ConnectURL ¶
ConnectURL returns a URL-style connection string for use with golang-migrate's pgx5 driver.
Click to show internal directories.
Click to hide internal directories.