final class SqliteSqlEscaper (View source)

Escapes SQLite string literals and LIKE patterns through the PDO connection.

Methods

__construct(SqliteIdentifierEscaper $identifierEscaper)

Initializes this SqliteSqlEscaper with the collaborators and state required by its database contract.

string
value(mixed $value)

Provides this part of the database contract while preserving the object's current state and driver semantics.

string
string
identifier(string $identifier)

Provides this part of the database contract while preserving the object's current state and driver semantics.

string
string
table(string $table)

Provides this part of the database contract while preserving the object's current state and driver semantics.

string

Details

__construct

__construct(SqliteIdentifierEscaper $identifierEscaper)

Initializes this SqliteSqlEscaper with the collaborators and state required by its database contract.

Parameters

SqliteIdentifierEscaper $identifierEscaper

value

string value(mixed $value)

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

mixed $value

Return Value

string

identifier

string identifier(string $identifier)

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

string $identifier

Return Value

string

table

string table(string $table)

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

string $table

Return Value

string