API / Minn\Query / Sql

Sql final class

Minn\Query\Sql · public/minn/src/Minn/Query/Sql.php · 42 lines

Literal quoting for the SQL fragments the query classes hand to plugins, which embed them verbatim in their own statements.

Public

staticquote(string $value): string#

A quoted string literal.

staticescape(string $value): string#

The reference's escaping: backslash, quotes, NUL, newlines, and the substitute character.

staticlike(string $value): string#

A LIKE operand with its wildcards escaped; quote() afterwards.

staticlist(array $values): string#

A comma list of quoted literals.

staticgroup(array $chunks, string $relation, int $depth): string#

Clauses joined as the reference joins them at every depth (probe query-clauses): wrapped in parentheses, each clause and the relation on its own line, indented two spaces a level.

$chunkslist<string>