sqlescape

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureEscaped added in v0.19.0

func EnsureEscaped(in string) (string, error)

func EscapeID

func EscapeID(in string) string

EscapeID returns a backticked identifier given an input string.

func EscapeIDs added in v0.13.0

func EscapeIDs(identifiers []string) []string

EscapeIDs runs sqlescape.EscapeID() for all entries in the slice.

func UnescapeID added in v0.13.0

func UnescapeID(in string) (string, error)

UnescapeID reverses any backticking in the input string by EscapeID.

func WriteEscapeID

func WriteEscapeID(buf *strings.Builder, in string)

WriteEscapeID writes a backticked identifier from an input string into buf.

Types

This section is empty.

Jump to

Keyboard shortcuts

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