Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
DB holds the database connection pool
func ConnectSQL ¶
ConnectSQL connects to a SQL database using the provided DSN and returns a pointer to a DB object and an error. The DB object contains a connection pool with the maximum number of open connections, maximum number of idle connections, and maximum lifetime of a connection set. If the connection to the database fails, it returns an error.
Click to show internal directories.
Click to hide internal directories.