classSqlitePlatform
final class SqlitePlatform
implements Platform
Public API: explicitly declared with
@visibility public.Database semantics for SQLite.
Inject this platform into a QueryExecutor or a driver adapter. Each executor owns its session state and receives an independent rewrite pipeline.
$platform = new \ZtdQuery\Platform\Sqlite\SqlitePlatform();
$platform instanceof \ZtdQuery\Platform // => trueMethods§
public function reflectSchema(ConnectionInterface $connection): TableDefinitionRegistry{@inheritDoc}
Parameters
$connection | ConnectionInterface |
Returns
Calls 6
- new SqliteSchemaParser line 39
- new TableDefinitionRegistry line 40
- new SqliteSchemaReflector line 42
- method-call SqliteSchemaReflector::reflectAll() line 43
- method-call SqliteSchemaParser::parse() line 44
- method-call TableDefinitionRegistry::register() line 46
public function reflectViews(ConnectionInterface $connection): ViewDefinitionSet{@inheritDoc}
Parameters
$connection | ConnectionInterface |
Returns
Calls 4
- new SqliteSchemaReflector line 58
- new ViewDefinitionSet line 59
- method-call SqliteSchemaReflector::reflectViews() line 60
- method-call ViewDefinitionSet::register() line 61
public function createRewriter(
ShadowStore $store,
TableDefinitionRegistry $registry,
ViewDefinitionSet $views,
): SqlRewriter{@inheritDoc}
Parameters
$store | ShadowStore | |
$registry | TableDefinitionRegistry | |
$views | ViewDefinitionSet |
Returns
public function copySupport(): ?CopySupport{@inheritDoc}
Returns
Test cases 1
public function parameterBindingCompiler(): ParameterBindingCompiler{@inheritDoc}
Returns
Test cases 1
Calls 1
public function resultColumnTypeResolver(): ResultColumnTypeResolver{@inheritDoc}
Returns
Test cases 1
Calls 1
Test cases 37§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 7
SqlitePlatformTest::testCopySupportDescribesTheDialectcallsSqlitePlatformTest::testCreateRewriterProvidesIndependentSqlBehaviorcallsSqlitePlatformTest::testCreateWithUnparseableSchemaSkipsTablecallsSqlitePlatformTest::testParameterBindingCompilerDescribesTheDialectcallsSqlitePlatformTest::testReflectSchemaWithExistingTablesRegistersDefinitionscallsSqlitePlatformTest::testReflectViewsRegistersReflectedViewscallsSqlitePlatformTest::testResultColumnTypeResolverDescribesTheDialectcalls
Other tests reaching this symbol 30
BehaviorTarget::verifycallsSqliteDriverDetectionTest::testAConnectionOpenedByDsnUsesThePlatformItIsGivencallsSqliteDriverDetectionTest::testExplicitPlatformInjectioncallsPreparedQueryTest::testPrepareReportsASilentDriverFailurecallsPreparedQueryTest::testRewriteUsesTheCurrentShadowOnEveryExecutioncallsStatementExecutionTest::testBindingsRemainAvailableAcrossExecutionscallsStatementExecutionTest::testBindParameterRetainsReferencesAcrossRepreparationcallsStatementExecutionTest::testExecutePreparedRefreshesShadowReadsAndReplaysBindingscallsStatementExecutionTest::testExecuteSilentFailureDoesNotProduceAShadowResultcallsStatementExecutionTest::testFetchAllReturnsAssociativeRowscallsStatementExecutionTest::testNativeUnrewrittenExecutionDelegatesToTheNativeStatementcallsStatementExecutionTest::testPostProcessAppliesResultSelectRowsToTheShadowcallsStatementExecutionTest::testResultColumnsRemainAvailableAfterRowsAreConsumedcallsStatementExecutionTest::testResultUpdatesShadowAndReturnsItsResultcallsStatementExecutionTest::testRowCountTracksNativeMutationscallsZtdPdoStatementTest::testBindColumnFillsTheVariableTheColumnIsReadIntocallsZtdPdoStatementTest::testDebugDumpParamsWritesTheDumpRatherThanAnsweringItcallsZtdPdoStatementTest::testErrorCodeAnswersNothingWhereTheDriverSaysNothingcallsZtdPdoStatementTest::testErrorCodeAnswersWhatTheDriverSaysWentWrongLastcallsZtdPdoStatementTest::testErrorInfoAnswersWhatTheDriverSaysAboutTheLastFailurecallsZtdPdoStatementTest::testFetchObjectDelegatesWithoutABufferedResultcallsZtdPdoStatementTest::testGetAttributeReadsTheAttributeOffTheStatementItWrapscallsZtdPdoStatementTest::testGetColumnMetaAnswersWhatTheDriverSaysAboutAColumncallsZtdPdoStatementTest::testGetIteratorWalksTheDriversOwnCursorWhereNothingWasBufferedcallsZtdPdoStatementTest::testNextRowsetMovesTheStatementOnToTheDriversNextResultcallsZtdPdoStatementTest::testPassthroughFetchAllForwardsColumnAndCallbackArgumentscallsZtdPdoStatementTest::testPassthroughFetchAllPreservesKeyPairKeyscallsZtdPdoStatementTest::testSetAttributeSetsTheAttributeOnTheStatementItWrapscallsZtdPdoTest::testExplicitPlatformCreatesAnIsolatedSessioncallsZtdPdoTest::testFromPdoReusesAPlatformWithoutSharingVirtualStatecalls