final class ConnectionRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

Lowers ATTACH and DETACH.

Rule: SQLITE-CONNECTION-LOWER-001. Scope: the cmd productions of ATTACH and DETACH, with database_kw_opt and key_opt. Constructors: Attach, Detach, NameOperand. An operand that is one identifier inside any number of parentheses lowers to a NameOperand inside as many groupings, because SQLite reads it as text; every other operand is an ordinary expression. The DATABASE keyword is declared noise. Terminates: the parentheses around an operand are counted in a loop over a strict subtree chain. Source: https://sqlite.org/lang_attach.html, https://sqlite.org/lang_detach.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function command(Form $form): ?Statement
public function keyword(Node $keyword, Node $operand): Node
public function key(Node $key): ?Scalar

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

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
Method calls 1
Type declarations 1