db

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoToolDBMap = make(map[string]*gorm.DB)

Functions

func Init

func Init(configName ...string) *gorm.DB

获取数据库操作对象

func MapToWhere added in v1.3.6

func MapToWhere(mapData map[string][]any) (string, []any)

将 map 对象转换为 sql 条件

func Start added in v1.5.3

func Start(dbConfigs map[string]map[string]string)

初始化数据库连接池

Types

This section is empty.

Jump to

Keyboard shortcuts

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