Documentation ¶
Index ¶
- Constants
- func New(name, prefix string) tpl.SQLTemplate
- type MssqlContext
- func (ctx *MssqlContext) AnalyzeTPL(template string, input map[string]interface{}, ph tpl.Placeholder) (string, []string, []interface{})
- func (ctx *MssqlContext) GetSQLContext(template string, input map[string]interface{}) (query string, args []interface{})
- func (ctx *MssqlContext) HandleAndSymbols(template string, input map[string]interface{}, ph tpl.Placeholder) (sql string, values []interface{}, exists bool)
- func (ctx *MssqlContext) HandleOrSymbols(template string, input map[string]interface{}, ph tpl.Placeholder) (sql string, values []interface{}, exists bool)
- func (ctx *MssqlContext) Name() string
- func (ctx *MssqlContext) Placeholder() tpl.Placeholder
Constants ¶
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, []string, []interface{})
func (*MssqlContext) GetSQLContext ¶
func (ctx *MssqlContext) GetSQLContext(template string, input map[string]interface{}) (query string, args []interface{})
GetSQLContext 获取查询串
func (*MssqlContext) HandleAndSymbols ¶ added in v0.1.22
func (ctx *MssqlContext) HandleAndSymbols(template string, input map[string]interface{}, ph tpl.Placeholder) (sql string, values []interface{}, exists bool)
func (*MssqlContext) HandleOrSymbols ¶ added in v0.1.22
func (ctx *MssqlContext) HandleOrSymbols(template string, input map[string]interface{}, ph tpl.Placeholder) (sql string, values []interface{}, exists bool)
func (*MssqlContext) Name ¶
func (ctx *MssqlContext) Name() string
func (*MssqlContext) Placeholder ¶
func (ctx *MssqlContext) Placeholder() tpl.Placeholder
Click to show internal directories.
Click to hide internal directories.