enumDefaultSetting
enum DefaultSetting: string
implements OptionArgument
Public API: explicitly declared with
@visibility public.The keyword DEFAULT written as the value of a database option: the option takes its default.
Source: https://www.postgresql.org/docs/17/sql-createdatabase.html.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE DATABASE d TEMPLATE DEFAULT');
$operation->statement->options[0]->value // => \SqlSemantics\Platform\PostgreSql\Statement\Catalog\Database\DefaultSetting::DefaultCases§
case Default = 'DEFAULT'Methods§
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: a keyword holds no expression.
Parameters
$derivation | Derivation | |
$environment | Environment |
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
DefaultSettingTestcalls