Documentation
¶
Index ¶
- func EndsLike(s string, escape ...rune) string
- func EscapeLike(s string, escape ...rune) string
- func EscapeString(s string) string
- func Quote(s string, q string) string
- func QuoteFunc(q string) func(string) string
- func StartsLike(s string, escape ...rune) string
- func StringLike(s string, escape ...rune) string
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndsLike ¶
StartsLike build a string for like suffix '%' + s The default escape char is backslach '\\'.
func EscapeLike ¶
EscapeLike escape sql like string. The default escape char is backslach '\\'.
func EscapeString ¶
At present, this method only turns single-quotes into doubled single-quotes ( <code>"McHale's Navy"</code> => <code>"McHale”s Navy"</code>). It does not handle the cases of percent (%) or underscore (_) for use in LIKE clauses. </p> see http://www.jguru.com/faq/view.jsp?EID=8881
func StartsLike ¶
StartsLike build a string for like prefix s + '%' The default escape char is backslach '\\'.
func StringLike ¶
StringLike build a string for like '%' + s + '%' The default escape char is backslach '\\'.
Types ¶
type Vector ¶
type Vector struct {
// contains filtered or unexported fields
}
Vector is a wrapper for []float64 to implement sql.Scanner and driver.Valuer.