mini\Database\PartialQuery::ensureAST()
Method
private
Signature
private function ensureAST(): void
Returns
void
Documentation
Ensure AST exists (lazy parsing)
Called before any operation that reads or modifies the AST. Parses baseSql and binds originalParams on first call. Nulls out baseSql/originalParams to prevent accidental use of stale data.
Uses cached parsing when available. If AST is from cache, it's marked as shared (astIsPrivate = false) so ensureMutableAST() will clone before any mutations.