func (database *Database) Open() (*Database, error) {
	db, err := sql.Open(driver, database.dataSourceName)
	database.db = db
	return database, err
}
Open returns mysql driver database
package mysql
import (
	"database/sql"
)
const (
	driver = "mysql"
)
type Database struct {
	dataSourceName string
	db             *sql.DB
}
func New(dataSourceName string) *Database {
	database := &Database{}
	if dataSourceName != "" {
		database.dataSourceName = dataSourceName
	}
	return database
}
func (database *Database) SetDB(db *sql.DB) {
	database.db = db
}
func (database *Database) GetDB() *sql.DB {
	return database.db
}