sqllike

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package sqllike escapes user text for use inside a SQL LIKE pattern.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Escape

func Escape(s string) string

Escape returns s with the LIKE metacharacters backslash, percent and underscore each prefixed by a backslash, so they match themselves. It is for use with ESCAPE '\' on the LIKE or ILIKE clause that receives the result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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