express

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FIELD_REGEX = "[\\w\\p{Han}][\\w\\d\\p{Han}]*"
View Source
const MATCH_ADVANCE_SEARCH = "" /* 197-byte string literal not displayed */
View Source
const MATCH_ADVANCE_SEARCH_SUB_GROUP = "(([\\w\\$][\\w\\d_]*)\\s*( (CONTAINS|BEGIN|END) |=|>|<|>=|<=)\\s*([^,\\{\\}]+))"
View Source
const MATCH_DATETIME2_REGION = "^\\s*\\$\\{\\s*(((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\/(((0[13578]|1[02])\\/(0[1-9]|[12][0-9]|3[01]))|" +
	"((0[469]|11)\\/(0[1-9]|[12][0-9]|30))|(02\\/(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
	"((0[48]|[2468][048]|[3579][26])00))\\/02\\/29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])\\s*\\-\\s*((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\/(((0[13578]|1[02])\\/(0[1-9]|[12][0-9]|3[01]))|" +
	"((0[469]|11)\\/(0[1-9]|[12][0-9]|30))|(02\\/(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
	"((0[48]|[2468][048]|[3579][26])00))\\/02\\/29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]))\\s*\\}$"

**

  • 格式:${yyyy/MM/dd HH:mm:ss - yyyy/MM/dd HH:mm:ss, ...}
View Source
const MATCH_DATETIME_REGION = "^\\s*\\$\\{\\s*(((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\-(((0[13578]|1[02])\\-(0[1-9]|[12][0-9]|3[01]))|" +
	"((0[469]|11)\\-(0[1-9]|[12][0-9]|30))|(02\\-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
	"((0[48]|[2468][048]|[3579][26])00))\\-02\\-29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])\\s*\\~\\s*((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\-(((0[13578]|1[02])\\-(0[1-9]|[12][0-9]|3[01]))|" +
	"((0[469]|11)\\-(0[1-9]|[12][0-9]|30))|(02\\-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
	"((0[48]|[2468][048]|[3579][26])00))\\-02\\-29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]))\\s*\\}$"

**

  • 格式:${yyyy-MM-dd HH:mm:ss ~ yyyy-MM-dd HH:mm:ss, ...}
View Source
const MATCH_DATETIME_REGION_NOT = "^\\s*\\$\\{\\s*(((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\-(((0[13578]|1[02])\\-(0[1-9]|[12][0-9]|3[01]))|" +
	"((0[469]|11)\\-(0[1-9]|[12][0-9]|30))|(02\\-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
	"((0[48]|[2468][048]|[3579][26])00))\\-02\\-29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])\\s*\\!\\~\\s*((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})\\-(((0[13578]|1[02])\\-(0[1-9]|[12][0-9]|3[01]))|" +
	"((0[469]|11)\\-(0[1-9]|[12][0-9]|30))|(02\\-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|" +
	"((0[48]|[2468][048]|[3579][26])00))\\-02\\-29))\\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]))\\s*\\}$"

**

  • 格式:${yyyy-MM-dd HH:mm:ss !~ yyyy-MM-dd HH:mm:ss, ...}
View Source
const MATCH_EL_IN = "^\\s*\\$\\{(\\d+(,\\s*\\d+)*)\\}\\s*$"

**

  • 格式:${1,2,3,4,5...}
View Source
const MATCH_EL_REGION = "^\\s*\\$\\{((\\d+\\-\\d+)(,\\s*\\d+\\-\\d+\\s*)*)\\}\\s*$"

**

  • 格式:${1-5, 7-9, ...}

Variables

This section is empty.

Functions

func FieldCaseTo

func FieldCaseTo(field string) string

func GetBetween

func GetBetween(field string, val string, m []string, spliter string) (string, bool)

func GetIn

func GetIn(field string, val string, m []string) (string, bool)

func ParseElExpr

func ParseElExpr(field string, val string) string

func ReplaceInjectChar

func ReplaceInjectChar(value string) string

func TrimInjectChar

func TrimInjectChar(value string) string

Types

type ConditionInfo

type ConditionInfo struct {
	Algorithm string
	Value     interface{}
	Name      string
}

type ExprInfo

type ExprInfo struct {
	Value          string
	Datasource     string
	Table          string
	Column         string
	Expr           string
	Function       string
	ConditionInfos []ConditionInfo
	FieldList      []string
	GroupList      hashset.Set
	OrderByList    hashset.Set
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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