package
Version:
v1.5.0
Opens a new window with list of versions in this module.
Published: Jun 29, 2024
License: ISC
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DisableLog disables all library log output. Logging output is disabled
by default until either UseLogger or SetLogWriter are called.
func New(host, user, password, dbname string) (*mysqlCtx, error)
New connects to a mysql instance using the given connection params,
and returns pointer to the created mysql struct.
UseLogger uses a specified Logger to output package logging info.
This should be used in preference to SetLogWriter if the caller is also
using slog.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.