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\"").
Called from 45

Test cases 6§

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 5

Relations§

Implemented by 4
Method calls 45
Type declarations 24