service

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeResult added in v1.4.0

func DeResult(re sql.Result, err error) (int64, error)

DeResult ...

func HIDToID added in v1.1.0

func HIDToID(hid string, kind ...string) int64

HIDToID 把 string 的 HID 转换为 int64 ID,如果 HID 字符串不合法或者对象不合法,则返回 0。

func IDToHID added in v1.1.0

func IDToHID(id int64, kind ...string) string

IDToHID 把 int64 的 ID 转换为 string HID,如果对象无效或者 ID (int64 > 0)不合法,则返回空字符串。

Types

type SQL

type SQL struct {
	DB   *goqu.Database
	RdDB *goqu.Database
	// contains filtered or unexported fields
}

SQL ...

func NewDB

func NewDB() *SQL

NewDB ...

func (*SQL) DBStats

func (s *SQL) DBStats() sql.DBStats

DBStats ...

Jump to

Keyboard shortcuts

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