summaryrefslogtreecommitdiffstats
path: root/indenters/examples/example.sql
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-09-18 14:21:27 +0900
committerMichele Calgaro <[email protected]>2024-09-18 14:21:27 +0900
commit8d6255b84d9fb6a585d010119f289baff0794df9 (patch)
tree5e2a9bb3ea6f85217a9e01cee5634dca5170ca50 /indenters/examples/example.sql
parent3db895919a4cd36972dd5241f480a68fe0f4eb4d (diff)
downloaduniversal-indent-gui-tqt-8d6255b84d9fb6a585d010119f289baff0794df9.tar.gz
universal-indent-gui-tqt-8d6255b84d9fb6a585d010119f289baff0794df9.zip
Added indenter examples
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'indenters/examples/example.sql')
-rwxr-xr-xindenters/examples/example.sql37
1 files changed, 37 insertions, 0 deletions
diff --git a/indenters/examples/example.sql b/indenters/examples/example.sql
new file mode 100755
index 0000000..077eeb8
--- /dev/null
+++ b/indenters/examples/example.sql
@@ -0,0 +1,37 @@
+CREATE PACKAGE BODY b IS
+
+PROCEDURE proc1 IS
+BEGIN
+IF 7 <> 5 THEN
+FOR rec IN (SELECT * FROM dual
+ WHERE g = 5) LOOP
+NULL;
+END LOOP;
+ END IF;
+END;
+
+PROCEDURE recurse IS
+ b number:=5;
+ d456 number:=456;
+BEGIN
+ recurse;
+ proc1;
+ a := (a + 1
+ +4
+ + 5
+ + 8);
+ c := f + 4 + 34;
+ total := earth +sky;
+
+ --this is comment
+
+ uk:=h;
+ g:=l;
+ exception
+ when no_data then
+ hello;
+ END;
+
+ BEGIN
+ NULL;
+END;