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.

Reading the kind of a new access methoddoctest
$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::Table

Properties§

public Name $name
public DottedName $handler

Methods§

public function __construct(
    public Name $name,
    public AccessMethodKind $kind,
    public DottedName $handler,
)

Parameters

$nameNameThe access method name
$kindAccessMethodKindWhether it is an index or a table access method
$handlerDottedNameThe handler function
public function deriveStatement(Derivation $derivation): void

Derives nothing: the handler function is not part of a declaration context.

Parameters

$derivationDerivation
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 2

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1