interface IdentifierQuoter

Quotes SQL identifiers using platform-specific quoting characters.

MySQL uses backticks, PostgreSQL and SQLite use double quotes.

Methods§

public function quote(string $identifier): string

Quote a SQL identifier.

Parameters

$identifierstringThe identifier to quote (e.g. "users", "column_name").

Returns

string The quoted identifier (e.g. "`users`", "\"users\"").

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Implemented by 1