enumDiscardTarget
enum DiscardTarget: string
Public API: explicitly declared with
@visibility public.What DISCARD releases.
Mirrors PostgreSQL's DiscardMode. TEMP and TEMPORARY are two spellings of the same request, the temporary tables of the session; the spelling written is kept. The value is the keyword. Source: https://www.postgresql.org/docs/17/sql-discard.html.
[\SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\DiscardTarget::Temp->temporary(), \SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\DiscardTarget::Temporary->temporary()] // => [true, true]Cases§
case All = 'ALL'case Plans = 'PLANS'case Sequences = 'SEQUENCES'case Temp = 'TEMP'case Temporary = 'TEMPORARY'Methods§
public function temporary(): boolTells whether the temporary tables are what is released, under either spelling.
Returns
boolTest cases 1
Calls 2
- class-const DiscardTarget::Temp() line 32
- class-const DiscardTarget::Temporary() line 32
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Constant reads 5
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\SettingRule packages/sql-semantics-postgres/src/Lowering/Utility/SettingRule.php:74
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\SettingRule packages/sql-semantics-postgres/src/Lowering/Utility/SettingRule.php:75
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\SettingRule packages/sql-semantics-postgres/src/Lowering/Utility/SettingRule.php:76
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\SettingRule packages/sql-semantics-postgres/src/Lowering/Utility/SettingRule.php:77
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Utility\SettingRule packages/sql-semantics-postgres/src/Lowering/Utility/SettingRule.php:78