classSequenceAs
final class SequenceAs
implements SequenceOption
uses Snapshot
Public API: explicitly declared with
@visibility public.The AS option of a sequence: the data type of its values.
The server accepts smallint, integer and bigint. Source: https://www.postgresql.org/docs/17/sql-createsequence.html.
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE SEQUENCE s AS smallint');
$create->statement->options[0]->type->catalogName()->value // => 'int2'Properties§
public TypeDesignation $typeMethods§
public function __construct(public TypeDesignation $type)Parameters
$type | TypeDesignation | The data type |
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the type modifiers.
Parameters
$derivation | Derivation | |
$environment | Environment |
Calls 1
- method-call TypeDesignation::deriveClause() line 40
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
SequenceAsTestcalls