classPgSqlPlatform
final class PgSqlPlatform
implements Platform
Public API: explicitly declared with
@visibility public.Database semantics for PostgreSQL.
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\Postgres\PgSqlPlatform();
$platform instanceof \ZtdQuery\Platform // => trueMethods§
public function reflectSchema(ConnectionInterface $connection): TableDefinitionRegistrypublic function reflectViews(ConnectionInterface $connection): ViewDefinitionSet{@inheritDoc}
Parameters
$connection | ConnectionInterface |
Returns
Calls 4
- new PgSqlSchemaReflector line 62
- new ViewDefinitionSet line 63
- method-call PgSqlSchemaReflector::reflectViews() line 64
- method-call ViewDefinitionSet::register() line 65
public function createRewriter(
ShadowStore $store,
TableDefinitionRegistry $registry,
ViewDefinitionSet $views,
): SqlRewriter{@inheritDoc}
Parameters
$store | ShadowStore | |
$registry | TableDefinitionRegistry | |
$views | ViewDefinitionSet |
Returns
Calls 10
public function copySupport(): CopySupport{@inheritDoc}
Returns
Test cases 1
Calls 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 15§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 13
PgSqlPlatformTest::testCopySupportDescribesTheDialectcallsPgSqlPlatformTest::testCreatedSessionIsEnabledByDefaultcallsPgSqlPlatformTest::testCreateRegistersReflectedPartialUniqueIndexescallsPgSqlPlatformTest::testCreateRewriterProvidesIndependentSqlBehaviorcallsPgSqlPlatformTest::testCreateWithEmptyDatabaseReturnsSessioncallsPgSqlPlatformTest::testCreateWithNullParseResultStillWorkscallsPgSqlPlatformTest::testCreateWithTableRegistersSchemaInSessioncallsPgSqlPlatformTest::testCreateWithTablesReflectsSchemacallsPgSqlPlatformTest::testParameterBindingCompilerDescribesTheDialectcallsPgSqlPlatformTest::testReflectSchemaRegistersReflectedPartitionMetadatacallsPgSqlPlatformTest::testReflectViewsRegistersReflectedViewscallsPgSqlPlatformTest::testResultColumnTypeResolverDescribesTheDialectcallsPgSqlPlatformTest::testSessionCanBeEnabledAfterCreationcalls