驱动实现

    1. // DriverMysql is the driver for mysql database.
    2. type DriverMysql struct {
    3. // New creates and returns a database object for mysql.
    4. func (d *DriverMysql) New(core *Core, node *ConfigNode) (DB, error) {
    5. return &DriverMysql{
    6. Core: core,
    7. }