package
Version:
v1.10.1
Opens a new window with list of versions in this module.
Published: May 10, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 18
Opens a new window with list of known importers.
Documentation
¶
func CloseDb() (err error)
CloseDb closes the connection to MySQL
GetDb returns a connection to MySQL
GetTransaction will return a transaction
NewTestDb gets a database mock for testing
Ping checks if the database connection is alive
Database holds the connection options
NewDb initializes a connection to MySQL and tries to connect.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.