replace

package
v0.0.0-...-bd5b3e0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAllConditions

func FindAllConditions(node sqlparser.SQLNode) ([]interface{}, error)

func FindAllTableNodes

func FindAllTableNodes(node sqlparser.SQLNode) ([]interface{}, error)

func FindLimitNodes

func FindLimitNodes(node sqlparser.SQLNode) ([]interface{}, error)

func GetIndex

func GetIndex(str string, subStr string) []int

获取变量(问号)在sql中的index

func ReplaceQuestionMark

func ReplaceQuestionMark(query string, db *sql.DB, dbName string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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