LLikeSail
Product

Product features · Literal SQL LIKE patterns

01

Use like_literal.py to keep literal percent and underscore characters separate from SQL LIKE wildcards.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

Literal SQL LIKE patterns

● ● ●LikeSail●
A concrete starting point · Literal SQL LIKE patterns ×
def like_literal(text):
    if type(text) is not str or "\x00" in text:
        raise ValueError("like.text")
    return text.replace("!", "!!").replace("%", "!%").replace("_", "!_")

SQL = "SELECT value FROM items WHERE value LIKE ? ESCAPE '!'"
✳Literal SQL LIKE patterns
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗