sql

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSQL

func GetSQL(fpath string, replaceList ...string) (string, error)

GetSQL 获取sql文本 replaceList 字符串列表,依次替换SQL文本中的?占位符 TODO 需要强调占位符与通配符的区别,比如%和_在LIKE子句中不是占位符,而是通配符,需要和参数化查询中的占位符区分开。

func GetTextByFilePath

func GetTextByFilePath(defaultFilePath string, customFilePath string) (content string, err error)

func LsDir

func LsDir() []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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