classDetach
final class Detach
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.A request to remove an attached database from the connection.
Rule: SQLITE-DETACH-001. The schema name is an expression evaluated where no relation is visible; an operand that is a single identifier is the text of its name (NameOperand). The optional DATABASE keyword is not written. Whether the schema is attached is connection state and no fact of the model. Source: https://sqlite.org/lang_detach.html. Status: Implemented.
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('DETACH DATABASE aux')->statement->schema->name->value // => 'aux'Properties§
public Scalar $schemaMethods§
public function __construct(public Scalar $schema)Parameters
$schema | Scalar | The expression that names the schema |
public function deriveStatement(Derivation $derivation): voidDerives the operand where no relation is visible.
Parameters
$derivation | Derivation |
Calls 2
- method-call Derivation::scalar() line 42
- method-call Derivation::environment() line 42
public function render(Output $out): voidTest cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.