Documentation
¶
Overview ¶
Package postgres provides PostgreSQL database connection and migration utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(cfg Config) (*Connection, error)
func (*Connection) Ping ¶
func (c *Connection) Ping(ctx context.Context) error
Ping checks the connection to the database
func (*Connection) Pool ¶
func (c *Connection) Pool() *pgxpool.Pool
Pool returns the pgxpool.Pool instance
Click to show internal directories.
Click to hide internal directories.