classSystemColumns
final class SystemColumns
Declares the system columns every table has.
Rule: PG-SYSTEM-COLUMNS-001. "Every table has several system columns that
- are implicitly defined by the system":
tableoid(oid),xmin(xid),
cmin (cid), xmax (xid), cmax (cid) and ctid (tid). They are found by name only, are not part of *, and are never NULL. A user column cannot take one of these names. Every relation with storage has them (tables, partitioned and foreign tables, materialized views, sequences); views do not. Source: https://www.postgresql.org/docs/17/ddl-system-columns.html. Status: Implemented.
Methods§
public function implicit(): list<ImplicitColumn>Answers the implicit columns of a relation with storage.
Returns
list<ImplicitColumn>Test cases 1
Called from 4
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Declarations::table() packages/sql-semantics-postgres/src/Rules/Table/Definition/Declarations.php:77
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\QueryTables::table() packages/sql-semantics-postgres/src/Rules/Table/Definition/QueryTables.php:92
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Sequences::create() packages/sql-semantics-postgres/src/Rules/Table/Definition/Sequences.php:50
- method-call SqlSemantics\Platform\PostgreSql\Statement\Table\CreateTableAsExecute::deriveStatement() packages/sql-semantics-postgres/src/Statement/Table/CreateTableAsExecute.php:59
Calls 6
- function-call
array_reverseline 42 - class-const SystemColumns::COLUMNS() line 42
- new ImplicitColumn line 43
- new Name line 43
- new Column line 43
- class-const Nullability::NotNull() line 43
public function reserved(Name $name): boolTells whether a column name is the name of a system column.
Parameters
$name | Name |
Returns
boolTest cases 1
Called from 1
Calls 1
- class-const SystemColumns::COLUMNS() line 54
Private surface 1§
Implementation details, listed for orientation only.
private const COLUMNS = ['ctid' => \SqlSemantics\Platform\PostgreSql\Statement\Type\Descriptor\Builtin:…Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Relations§
Instantiated in 5
- new SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Declarations::table() packages/sql-semantics-postgres/src/Rules/Table/Definition/Declarations.php:77
- new SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Definitions::report() packages/sql-semantics-postgres/src/Rules/Table/Definition/Definitions.php:144
- new SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\QueryTables::table() packages/sql-semantics-postgres/src/Rules/Table/Definition/QueryTables.php:92
- new SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Sequences::create() packages/sql-semantics-postgres/src/Rules/Table/Definition/Sequences.php:50
- new SqlSemantics\Platform\PostgreSql\Statement\Table\CreateTableAsExecute::deriveStatement() packages/sql-semantics-postgres/src/Statement/Table/CreateTableAsExecute.php:59
Method calls 5
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Declarations::table() packages/sql-semantics-postgres/src/Rules/Table/Definition/Declarations.php:77
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Definitions::report() packages/sql-semantics-postgres/src/Rules/Table/Definition/Definitions.php:158
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\QueryTables::table() packages/sql-semantics-postgres/src/Rules/Table/Definition/QueryTables.php:92
- method-call SqlSemantics\Platform\PostgreSql\Rules\Table\Definition\Sequences::create() packages/sql-semantics-postgres/src/Rules/Table/Definition/Sequences.php:50
- method-call SqlSemantics\Platform\PostgreSql\Statement\Table\CreateTableAsExecute::deriveStatement() packages/sql-semantics-postgres/src/Statement/Table/CreateTableAsExecute.php:59