dbutils

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuery

func NewQuery(tx *dbs.Tx, dao dbs.DAOWrapper, adminId int64, userId int64) *dbs.Query

NewQuery 构造Query

func QuoteLike

func QuoteLike(keyword string) string

func QuoteLikeKeyword

func QuoteLikeKeyword(keyword string) string

QuoteLikeKeyword 处理关键词中的特殊字符

func QuoteLikePrefix

func QuoteLikePrefix(keyword string) string

func QuoteLikeSuffix

func QuoteLikeSuffix(keyword string) string

func SetGlobalVarMax added in v0.5.3

func SetGlobalVarMax(db *dbs.DB, variableName string, maxValue int) error

SetGlobalVarMax 设置变量最大值

func SetGlobalVarMin added in v0.5.3

func SetGlobalVarMin(db *dbs.DB, variableName string, minValue int) error

SetGlobalVarMin 设置变量最小值

Types

This section is empty.

Jump to

Keyboard shortcuts

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