Documentation ¶
Overview ¶
Package msql implements connecting to a MySQL/MariaDB instance (and possibly others) and simplifies a number of interactions with it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQL ¶
SQL is a wrapper around a sqlx client which provides more functionality.
func InstMySQL ¶
InstMySQL returns a SQL instance which will be initialized when the Init event is triggered on the given Component. The SQL instance will have Close called on it when the Shutdown event is triggered on the given Component.
defaultDB indicates the name of the database in MySQL to use by default, though it will be overwritable in the config.
Click to show internal directories.
Click to hide internal directories.