sqlserver

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const ArgumentPrefix = "p_"
View Source
const Proto = "sqlserver"

Variables

This section is empty.

Functions

func New

func New(name, prefix string) tpl.SQLTemplate

Types

type MssqlContext

type MssqlContext struct {
	// contains filtered or unexported fields
}

MssqlContext 模板

func (*MssqlContext) AnalyzeTPL

func (ctx *MssqlContext) AnalyzeTPL(template string, input map[string]interface{}, ph tpl.Placeholder) (string, *tpl.ReplaceItem)

func (*MssqlContext) GetSQLContext

func (ctx *MssqlContext) GetSQLContext(template string, input map[string]interface{}) (query string, args []any)

GetSQLContext 获取查询串

func (*MssqlContext) Name

func (ctx *MssqlContext) Name() string

func (*MssqlContext) Placeholder

func (ctx *MssqlContext) Placeholder() tpl.Placeholder

Jump to

Keyboard shortcuts

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