Documentation ¶
Overview ¶
Package regexes exposes pre compiled reqular expressions that are used by ngorm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //DistinctSQL matches distict sql query DistinctSQL = regexp.MustCompile(`(?i)distinct[^a-z]+[a-z]+`) //Column matches database column // only match string like `name`, `users.name` Column = regexp.MustCompile("^[a-zA-Z]+(\\.[a-zA-Z]+)*$") //IsNumber matches if the string is a number. IsNumber = regexp.MustCompile("^\\s*\\d+\\s*$") //Comparison matches comparison in sql query Comparison = regexp.MustCompile("(?i) (=|<>|>|<|LIKE|IS|IN) ") //CountingQuery matches cound query. CountingQuery = regexp.MustCompile("(?i)^count(.+)$") //KeyName matches _ in a string KeyName = regexp.MustCompile("(_*[^a-zA-Z]+_*|_+)") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.