models

package
v0.0.0-...-5cbf6eb Latest Latest
Warning

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

Go to latest
Published: Mar 7, 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 DBManager

type DBManager struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

DBManager sqldb 管理器

var DBM *DBManager

DBM singleton instance connection pool

func (*DBManager) GetQuery

func (m *DBManager) GetQuery() string

GetQuery 取得設定SQL語法

func (*DBManager) NewDBConnect

func (m *DBManager) NewDBConnect()

NewDBConnect 連線DB func 若DB掛了可以用這組create

func (*DBManager) SQLDebug

func (m *DBManager) SQLDebug(args ...interface{})

SQLDebug 印出 sql statement

func (*DBManager) SetQuery

func (m *DBManager) SetQuery(query string)

SetQuery 設定SQL語法

Jump to

Keyboard shortcuts

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