sdk

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

README

dboperations

数据库操作封装

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyInstance

func DestroyInstance() error

func GetInstance

func GetInstance() operations.DBOperations

func InitInstance

func InitInstance(dbConfig *DBConfig) error

func IsErrorDBRecordHasExist

func IsErrorDBRecordHasExist(err error) bool

func IsErrorDBRecordNotExist

func IsErrorDBRecordNotExist(err error) bool

Types

type DBConfig

type DBConfig struct {
	Type               string
	UserName           string
	Password           string
	Address            string
	Port               string
	Database           string
	MaxConnections     int
	MaxIdleConnections int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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