enum StorageStrategy: string
    implements Choice
Public API: explicitly declared with @visibility public.

The storage attribute of a base type: how values of a variable-length type are stored.

DefineType compares the text without regard to case. Source: https://www.postgresql.org/docs/17/sql-createtype.html, DefineType in src/backend/commands/typecmds.c of PostgreSQL 17.

Reading a storage strategydoctest
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Choice\StorageStrategy::read('EXTENDED')?->name // => 'Extended'

Cases§

case Plain = 'plain'
case External = 'external'
case Extended = 'extended'
case Main = 'main'

Methods§

public static function read(string $text): ?self

Answers the strategy the text names without regard to case, or null.

Parameters

$textstring

Returns

?self
Test cases 2
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 1
Other tests reaching this symbol 2

Relations§

Constant reads 1