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.

Reading the persistence of a temporary targetdoctest
\SqlSemantics\Platform\PostgreSql\Statement\Query\Clause\IntoPersistence::LocalTemp->temporary() // => true

Cases§

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(): bool
public function keywords(): list<string>

Answers the keywords as written, none for a permanent table.

Returns

list<string>
Called from 1
Calls 2

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