final class MysqlIdentifierEscaper implements IdentifierEscaperInterface (View source)

Applies MySQL backtick quoting and the configured prefix to SQL identifiers.

Methods

__construct(string $prefix)

Creates an escaper whose prefix is applied by the shared quoted-identifier implementation.

string
identifier(string $identifier)

Escapes one MySQL identifier while preserving the identifier contract shared by database drivers.

string
string
table(string $table)

Escapes a table reference and applies the configured prefix once.

string

Details

__construct

__construct(string $prefix)

Creates an escaper whose prefix is applied by the shared quoted-identifier implementation.

Parameters

string $prefix

identifier

string identifier(string $identifier)

Escapes one MySQL identifier while preserving the identifier contract shared by database drivers.

Parameters

string $identifier

Return Value

string

table

string table(string $table)

Escapes a table reference and applies the configured prefix once.

Parameters

string $table

Return Value

string