mini\Database\PartialQuery::getAST()
Method
public
Signature
public function getAST(): mini\Parsing\SQL\AST\ASTNode
Returns
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.