Update comments regarding strange types
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Steven Polley 2020-10-06 01:06:21 +00:00
parent 15c8ac5f68
commit 98f50317be

View File

@ -6,11 +6,14 @@ import (
)
// Configuration holds the DSN connection string and a resource Semaphore to limit the number of active connections
// Note: This is a copied design pattern I've used for other projects which had much more data inside a Configuration struct.
// Examples include semaphores and persistent connection pools, which I've stripped out for this project.
type Configuration struct {
DSN string
}
// Connection represents a single connection to the database, however there may be many instances / connections
// Note: This is a copied design pattern I've used for other projects which had much more data inside a Connection struct.
type Connection struct {
DB *sql.DB
}