parsing

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicData

type DynamicData struct {
	OriginData     string
	DynamicElemMap map[string]DynamicElement
}

func (*DynamicData) ParseMetadata added in v0.2.7

func (dynamicData *DynamicData) ParseMetadata(driverName string, params ...interface{}) (*sqlparser.Metadata, error)

func (*DynamicData) Replace

func (dynamicData *DynamicData) Replace(params ...interface{}) string

func (*DynamicData) ReplaceWithMap

func (dynamicData *DynamicData) ReplaceWithMap(objParams map[string]interface{}) string

ReplaceWithMap 需要外部确保param是一个struct

type DynamicElement

type DynamicElement interface {
	Format(func(key string) string) string
}

type GetFunc

type GetFunc func(key string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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