mysql

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 11 Imported by: 0

README

core-admin-go mysql 驱动包

扩展了 GoFrame 的 mysql 包,集成了 gorm相关功能.

使用方法

引入规则应早于 modules相关引入,建议在 main.go 中进行引入。

import (
    _ "dzhgo/contrib/drivers/mysql"

    // 换行然后再入模块包,防止编辑器自动排序导致引入顺序错乱
    _ "dzhgo/modules/base"

)

配置

Documentation

Overview

Package mysql 扩展了 GoFrame 的 mysql 包,集成了 gorm相关功能.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMysql

func NewMysql() coredb.Driver

Types

type DriverMysql

type DriverMysql struct {
}

func (*DriverMysql) GetConn

func (d *DriverMysql) GetConn(config *gdb.ConfigNode) (db *gorm.DB, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL