Db

package
v0.0.0-...-9a85bd8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Base *gorm.DB

Functions

This section is empty.

Types

type MysqlConnectiPool

type MysqlConnectiPool struct {
	Db *gorm.DB
}

func Pool

func Pool() *MysqlConnectiPool

func (*MysqlConnectiPool) Do

func (m *MysqlConnectiPool) Do() *gorm.DB

func (*MysqlConnectiPool) Load

func (m *MysqlConnectiPool) Load() error

type SqlData

type SqlData struct {
	Bool  bool
	Empty bool
}

func Handel

func Handel(err *gorm.DB) SqlData

use first return record not found,use find return nil

Jump to

Keyboard shortcuts

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