Update comments regarding strange types
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
15c8ac5f68
commit
98f50317be
@ -6,11 +6,14 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Configuration holds the DSN connection string and a resource Semaphore to limit the number of active connections
|
// 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 {
|
type Configuration struct {
|
||||||
DSN string
|
DSN string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Connection represents a single connection to the database, however there may be many instances / connections
|
// 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 {
|
type Connection struct {
|
||||||
DB *sql.DB
|
DB *sql.DB
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user