-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
analyzerAnalyzing of PL/SQL codeAnalyzing of PL/SQL codeenhancementNew feature or requestNew feature or requestwasmWASM interface changesWASM interface changes
Description
Goal
Given a function, procedure or trigger, the analyzer should determine the number of statements.
Notes
- Nested statements should also be counted
- Expressions in the control flow should also be counted as their own statements (since they may pose a significant migration effort)
Example
CREATE PROCEDURE showcase
IS
DECLARE
formatted_output VARCHAR2(100);
BEGIN
SELECT 'name: ' || dummy || ', last login: ' INTO formatted_output FROM DUAL;
IF (formatted_output != '') THEN
DBMS_OUTPUT.PUT_LINE(formatted_output);
ELSIF TRUE != FALSE THEN
NULL;
ELSE
NULL;
END IF;
END;Number of statements: 6
- 1 for the first
SELECT INTO - 2 for the expressions in the
IFconstruct ((formatted_output != "")andTRUE != FALSE) - 3 for all nested statements inside the
IFbranches
How to demo
Rust and TS tests demonstrate the new analyzer statistics.
Metadata
Metadata
Assignees
Labels
analyzerAnalyzing of PL/SQL codeAnalyzing of PL/SQL codeenhancementNew feature or requestNew feature or requestwasmWASM interface changesWASM interface changes