datasource

package
v0.0.0-...-c622313 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db struct {
	Conn *gorm.DB
}

Db gormDB

func (*Db) Connect

func (d *Db) Connect() error

Connect 初始化数据库配置

func (*Db) DB

func (d *Db) DB() *gorm.DB

DB 返回DB

type IDb

type IDb interface {
	//Connect 初始化数据库配置
	Connect() error
	//DB 返回DB
	DB() *gorm.DB
}

IDb 数据库接口定义

Jump to

Keyboard shortcuts

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