package
0.0.0-20250128035417-84048cf2426f
Repository: https://github.com/jonesrussell/goforms.git
Documentation: pkg.go.dev

# README

Database Package

This package manages database connections and lifecycle.

Responsibilities

  • Database connection management
  • Connection pooling configuration
  • Transaction support
  • Database lifecycle hooks
  • Error handling and logging

Key Components

  • Database: Main database wrapper
  • NewDB: Database connection factory
  • Transaction methods
  • Connection pool management

Usage

db, err := database.NewDB(cfg, logger)

# Functions

NewDB creates a new database connection.

# Structs

Database wraps the SQL connection pool.