Documentation
¶
Overview ¶
Package db provides database connections and helper functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionPool ¶
A ConnectionPool represents a standard sql.DB connection with max open > 0.
func NewConnectionPool ¶
func NewConnectionPool(maxOpen, maxIdle int, dsn string, tlsConfig *tls.Config) *ConnectionPool
func (*ConnectionPool) Close ¶
func (c *ConnectionPool) Close()
Click to show internal directories.
Click to hide internal directories.