final class Load
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

LOAD 'filename': a request to load a shared library into the server process.

Rule: PG-LOAD-001. Mirrors PostgreSQL's LoadStmt. The file name is text the server resolves in its own file system. Facts: none. Source: https://www.postgresql.org/docs/17/sql-load.html. Status: Implemented.

Reading the library filedoctest
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("LOAD 'auto_explain'")->statement->file->value // => 'auto_explain'

Properties§

Methods§

public function __construct(public StringConstant $file)

Parameters

$fileStringConstantThe library file name
public function deriveStatement(Derivation $derivation): void

Derives nothing: a library file is not part of a declaration context.

Parameters

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

Writes the request.

Parameters

$outOutput
Calls 1

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