classMySqlPlatform
final class MySqlPlatform
implements Platform
Public API: explicitly declared with
@visibility public.Database semantics for MySQL.
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\MySql\MySqlPlatform();
$platform instanceof \ZtdQuery\Platform // => trueMethods§
public function reflectSchema(ConnectionInterface $connection): TableDefinitionRegistry{@inheritDoc}
Parameters
$connection | ConnectionInterface |
Returns
Test cases 1
Calls 10
- static-call
Context::setMode()line 49 - method-call MySqlSessionSqlModeReflector::reflect() line 49
- new MySqlSessionSqlModeReflector line 49
- new MySqlParser line 51
- new MySqlSchemaParser line 52
- new TableDefinitionRegistry line 53
- new MySqlSchemaReflector line 55
- method-call MySqlSchemaReflector::reflectAll() line 56
- method-call MySqlSchemaParser::parse() line 57
- method-call TableDefinitionRegistry::register() line 59
public function reflectViews(ConnectionInterface $connection): ViewDefinitionSet{@inheritDoc}
Parameters
$connection | ConnectionInterface |
Returns
Test cases 1
Calls 4
- new MySqlSchemaReflector line 71
- new ViewDefinitionSet line 72
- method-call MySqlSchemaReflector::reflectViews() line 73
- method-call ViewDefinitionSet::register() line 74
public function createRewriter(
ShadowStore $store,
TableDefinitionRegistry $registry,
ViewDefinitionSet $views,
): SqlRewriter{@inheritDoc}
Parameters
$store | ShadowStore | |
$registry | TableDefinitionRegistry | |
$views | ViewDefinitionSet |
Returns
Test cases 1
Calls 11
- new MySqlParser line 85
- new MySqlSchemaParser line 86
- new MySqlQueryGuard line 88
- new SelectTransformer line 89
- new InsertTransformer line 90
- new UpdateTransformer line 91
- new DeleteTransformer line 92
- new ReplaceTransformer line 93
- new MySqlTransformer line 94
- new MySqlMutationResolver line 95
- new MySqlRewriter line 96
public function copySupport(): ?CopySupport{@inheritDoc}
Returns
Test cases 1
public function parameterBindingCompiler(): ?ParameterBindingCompiler{@inheritDoc}
Returns
Test cases 1
public function resultColumnTypeResolver(): ResultColumnTypeResolver{@inheritDoc}
Returns
Test cases 2
Calls 1
Test cases 13§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 6
MySqlPlatformTest::testCopySupportDescribesTheDialectcallsMySqlPlatformTest::testCreateRewriterProvidesIndependentSqlBehaviorcallsMySqlPlatformTest::testParameterBindingCompilerDescribesTheDialectcallsMySqlPlatformTest::testReflectSchemaAppliesReflectedAnsiQuotesModeToProductionLexingcallsMySqlPlatformTest::testReflectViewsRegistersReflectedViewscallsMySqlPlatformTest::testResultColumnTypeResolverDescribesTheDialectcalls
Other tests reaching this symbol 7
BehaviorTarget::verifycallsMysqliPlatformInjectionTest::testExplicitMySqlPlatformInjectionWorkscallsMysqliPlatformInjectionTest::testInjectedPlatformAffectedRowsTrackingcallsMysqliPlatformInjectionTest::testInjectedPlatformDoesNotModifyPhysicalDatabasecallsMysqliPlatformInjectionTest::testInjectedPlatformInsertIsVisibleViaSelectcallsMysqliPlatformInjectionTest::testInjectedPlatformPreparedStatementWorkscallsZtdMysqliTest::testQueryUsesTheInjectedPlatformcalls