sqlescape

package
v0.15.10 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureEscaped

func EnsureEscaped(in string) (string, error)

func EscapeID

func EscapeID(in string) string

EscapeID returns a backticked identifier given an input string.

func EscapeIDs

func EscapeIDs(identifiers []string) []string

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

func UnescapeID

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