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.

Telling that both spellings release temporary tablesdoctest
[\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(): bool

Tells whether the temporary tables are what is released, under either spelling.

Returns

bool
Test cases 1
Calls 2

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
Type declarations 1