enumIntoPersistence
enum IntoPersistence: string
Public API: explicitly declared with
@visibility public.The kind of table SELECT INTO creates, as written.
TEMP and TEMPORARY are the same request, and LOCAL and GLOBAL change nothing; the spelling is kept because the grammar keeps it. Permanent is the absence of any of these words. Source: https://www.postgresql.org/docs/17/sql-selectinto.html, https://www.postgresql.org/docs/17/sql-createtable.html.
\SqlSemantics\Platform\PostgreSql\Statement\Query\Clause\IntoPersistence::LocalTemp->temporary() // => trueCases§
case Permanent = ''case Temporary = 'TEMPORARY'case Temp = 'TEMP'case LocalTemporary = 'LOCAL TEMPORARY'case LocalTemp = 'LOCAL TEMP'case GlobalTemporary = 'GLOBAL TEMPORARY'case GlobalTemp = 'GLOBAL TEMP'case Unlogged = 'UNLOGGED'Methods§
public function temporary(): boolTells whether the new table is temporary.
Returns
boolCalls 8
- class-const IntoPersistence::Permanent() line 36
- class-const IntoPersistence::Unlogged() line 36
- class-const IntoPersistence::Temporary() line 37
- class-const IntoPersistence::Temp() line 37
- class-const IntoPersistence::LocalTemporary() line 37
- class-const IntoPersistence::LocalTemp() line 37
- class-const IntoPersistence::GlobalTemporary() line 37
- class-const IntoPersistence::GlobalTemp() line 37
public function keywords(): list<string>Answers the keywords as written, none for a permanent table.
Returns
list<string>Called from 1
Calls 2
- class-const IntoPersistence::Permanent() line 48
- function-call
explodeline 48
Test cases 3§
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 1
Relations§
Method calls 1
Constant reads 10
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:59
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:60
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:61
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:62
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:63
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:64
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:65
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:66
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\SelectRule packages/sql-semantics-postgres/src/Lowering/Query/SelectRule.php:67
- class-const SqlSemantics\Platform\PostgreSql\Statement\Query\Clause\IntoClause::__construct() packages/sql-semantics-postgres/src/Statement/Query/Clause/IntoClause.php:33