classPgSqlTableSample
final class PgSqlTableSample
Describes a TABLESAMPLE relation, sampling method, and repeatable seed.
Properties§
public string $tableNamepublic string $sourceSqlpublic string $aliasSqlpublic PgSqlTableSampleMethod $methodpublic string $percentageSqlpublic ?string $seedSqlpublic int $startOffsetpublic int $endOffsetMethods§
public function __construct(
public string $tableName,
public string $sourceSql,
public string $aliasSql,
public PgSqlTableSampleMethod $method,
public string $percentageSql,
public ?string $seedSql,
public int $startOffset,
public int $endOffset,
)Initializes the collaborators and state used by this table sample.
Parameters
$tableName | string | |
$sourceSql | string | |
$aliasSql | string | |
$method | PgSqlTableSampleMethod | |
$percentageSql | string | |
$seedSql | ?string | |
$startOffset | int | |
$endOffset | int |
Throws
InvalidArgumentExceptionCalls 1
- new
InvalidArgumentExceptionline 29
Test cases 15§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 13
PgSqlSessionFactoryTestcallsPgSqlRewriterTestcallsPgSqlTableSampleRewriterTestcallsSampleProjectionTest::testReplacementcallsStatementRewriterTestcallsDeleteTransformerTestcallsInsertTransformerTestcallsMergeTransformerTestcallsPgSqlTransformerTestcallsSelectTransformerTestcallsUpdateTransformerTestcallsPgSqlTableSampleParserTestcallsSampleClauseTest::testParseSamplecalls
Relations§
Instantiated in 1
Type declarations 3
- type ZtdQuery\Platform\Postgres\Rewrite\Sampling\PgSqlTableSampleRewriter::rewrite() packages/ztd-query-postgres/src/Rewrite/Sampling/PgSqlTableSampleRewriter.php:36
- type ZtdQuery\Platform\Postgres\Rewrite\Sampling\SampleProjection packages/ztd-query-postgres/src/Rewrite/Sampling/SampleProjection.php:31
- type ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:24