classCreateAccessMethod
final class CreateAccessMethod
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.A request to define an access method.
Rule: PG-ACCESS-METHOD-001. Mirrors CreateAmStmt: name, kind and handler. Source: https://www.postgresql.org/docs/17/sql-create-access-method.html. Status: Implemented.
$operation = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE ACCESS METHOD heap2 TYPE TABLE HANDLER heap_tableam_handler');
$operation->statement->kind // => \SqlSemantics\Platform\PostgreSql\Statement\Catalog\Language\AccessMethodKind::TableProperties§
public Name $namepublic AccessMethodKind $kindpublic DottedName $handlerMethods§
public function __construct(
public Name $name,
public AccessMethodKind $kind,
public DottedName $handler,
)Parameters
$name | Name | The access method name |
$kind | AccessMethodKind | Whether it is an index or a table access method |
$handler | DottedName | The handler function |
public function deriveStatement(Derivation $derivation): voidDerives nothing: the handler function is not part of a declaration context.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 51
- class-const NameUse::Column() line 51
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
CreateAccessMethodTestcalls