interfaceConnectionInterface
interface ConnectionInterface
Minimal connection interface for ZTD layer.
This interface defines the contract that all database adapters must implement to work with the ZTD session. It provides a driver-agnostic API for executing SQL queries.
Methods§
public function query(string $sql): StatementInterface|falseExecute a query and return a statement.
Parameters
$sql | string |
Returns
StatementInterface|false The statement on success, false on failure.Called from 2
Test cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 7
FakeConnectioncallsFakeSessionFactorycallsStatementSimulatorTest::testReadStatementReturnsFalseWhenExecutorFailscallsStatementSimulatorTest::testReadStatementReturnsRowCountcallsStatementSimulatorTest::testSimulateRefusesAWriteThePlanCarriesNoMutationForcallsStatementSimulatorTest::testUnsupportedSqlThrowscallsStatementSimulatorTest::testWriteStatementUpdatesShadowStorecalls