package
0.0.0-20230118092103-de70ca622e41
Repository: https://github.com/packtpublishing/hands-on-dependency-injection-in-go.git
Documentation: pkg.go.dev

# Functions

NewDAO will initialize the database connection pool (if not already done) and return a data access object which can be used to interact with the database.
NewLogTracker returns a Tracker that outputs tracking data to log.

# Variables

ErrNotFound is returned when the no records where matched by the query.

# Structs

DAO is a data access object that provides an abstraction over our database interactions.
LogTracker implements QueryTracker and outputs to the supplied logger.
Person is the data transfer object (DTO) for this package.

# Interfaces

Config is the configuration for the data package.
QueryTracker is an interface to track query timing.