sql

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndsLike

func EndsLike(str string) string

StartsLike build a string for like suffix '%' + str

func EscapeLike

func EscapeLike(str string) string

EscapeLike escape sql like string

func EscapeString

func EscapeString(str string) string

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

func StartsLike(str string) string

StartsLike build a string for like prefix str + '%'

func StringLike

func StringLike(str string) string

StringLike build a string for like '%' + str + '%'

Types

This section is empty.

Jump to

Keyboard shortcuts

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