final class PgSqlIdentifierQuoter
    implements IdentifierQuoter
Public API: explicitly declared with @visibility public.

PostgreSQL identifier quoting using double quotes.

Quote reserved identifiersdoctest
(new \ZtdQuery\Platform\Postgres\Sql\PgSqlIdentifierQuoter())->quote('select') // => '"select"'

Methods§

public function quote(string $identifier): string
Public API: explicitly declared with @visibility public.

{@inheritDoc}

Parameters

$identifierstring

Returns

string
Quote an identifier containing a double quotedoctest
(new \ZtdQuery\Platform\Postgres\Sql\PgSqlIdentifierQuoter())->quote('order"items') // => '"order""items"'
Test cases 22
Called from 21
Calls 1

Test cases 64§

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

Dedicated tests 16
Other tests reaching this symbol 48

Relations§

Instantiated in 8
Method calls 21
Type declarations 7