package
Version:
v1.3.1
Opens a new window with list of versions in this module.
Published: Dec 20, 2021
License: ISC
Opens a new window with license information.
Imports: 17
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, password, network, encryptionKey string) (*mysql, error)
New connects to a mysql instance using the given connection params,
and returns a 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.