mini\Parsing\SQL\SqlParser::parseCached()
Method
public
static
Signature
public static function parseCached(string $sql, bool $wasCached = false): mini\Parsing\SQL\AST\ASTNode
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$sql |
string |
required | Documentation missing |
$wasCached |
bool |
false
|
Documentation missing |
Returns
Documentation
Parse SQL with caching - returns AST from cache (possibly shared)
Returns the cached AST directly. Callers should treat it as shared (read-only) and deep-clone before mutation. This avoids cloning overhead for read-only query execution paths.
For queries that will be mutated, use the instance parse() method which always returns a fresh AST.