mini\Database\PartialQuery::getAST() Method

public

Signature

public function getAST(): mini\Parsing\SQL\AST\ASTNode

Returns

mini\Parsing\SQL\AST\ASTNode

Documentation

Get the AST representation of this query

Returns a deep clone of the AST to protect internal state from external mutation. Use this for external consumers (e.g., VirtualDatabase evaluation).

Internal PartialQuery code should access $this->ast directly to avoid unnecessary cloning, and use ensureMutableAST() before mutations.

Source

src/Database/PartialQuery.php:352-356