classMysqliConnection
final class MysqliConnection
implements ConnectionInterface
mysqli adapter implementing ConnectionInterface for ZTD layer.
This class wraps a mysqli instance and provides the minimal interface required by the ZTD session for executing queries.
Methods§
public function __construct(mysqli $mysqli)Adapt an existing native connection for the ZTD session.
Parameters
$mysqli | mysqli |
public function query(string $sql): StatementInterface|false{@inheritDoc}
Parameters
$sql | string |
Returns
StatementInterface|falseThrows
DatabaseException On database error.Test cases 3
Calls 3
- method-call
mysqli::query()line 37 - new DatabaseException line 41
- new MysqliResultStatement line 51
Private surface 1§
Implementation details, listed for orientation only.
private mysqli $mysqliTest cases 13§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 10
MysqliCteShadowingTestcallsMysqliForeignKeyCascadeTestcallsMysqliFullTextSearchTestcallsMysqliLoadDataTestcallsMysqliSessionFactoryInjectionTestcallsConnectionExecutionTestcallsStatementExecutionTestcallsZtdMysqliTest::testFromMysqliPassesTheConnectionAndConfigurationToItsFactorycallsZtdMysqliTest::testQueryUsesTheProvidedFactoryAndConfigurationcallsZtdMysqliTest::testRelease_savepointRemovesTheNativeAndShadowSavepointscalls