MysqlIdentifierEscaper
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.
identifier(string $identifier)
Escapes one MySQL identifier while preserving the identifier contract shared by database drivers.
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.
identifier
string
identifier(string $identifier)
Escapes one MySQL identifier while preserving the identifier contract shared by database drivers.
table
string
table(string $table)
Escapes a table reference and applies the configured prefix once.