Class BeginEndBlockHandler

java.lang.Object
dev.frostlake.executor.commands.BeginEndBlockHandler
All Implemented Interfaces:
CommandHandler

public class BeginEndBlockHandler extends Object implements CommandHandler
Handles Snowflake Scripting BEGIN … [EXCEPTION …] END blocks, extracted verbatim from SQLCommandVisitor.visitBeginEndBlock(dev.frostlake.parser.FrostlakeParser.BeginEndBlockContext) together with its cohesive exception-handling helpers (bindHandlerErrorVariables, shouldHandleException, matchesSnowflakeException — each used only by this path). Statement execution recurses back through visitor.visit(...); parse-text extraction (getOriginalText, getText) is reached through the visitor back-reference. The procedural scope/return/cursor state lives on the injected ProceduralExecutor, and cached result sets go through queryExecutor.getResultCache(), so the exact original behavior is preserved.