Documentation ¶ Index ¶ func NewDB(path string) (*sqlx.DB, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewDB ¶ func NewDB(path string) (*sqlx.DB, error) NewDB creates a new database connection using the given MySQL connection string. The function returns a sqlx.DB pointer or an error if the connection failed. Types ¶ This section is empty. Source Files ¶ View all Source files mysql.go Click to show internal directories. Click to hide internal directories.