db

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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

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

将 map 对象转换为 sql 条件

func Start

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