Skip to content

Commit 5cb6bc6

Browse files
authored
template for postgresql function (#65)
1 parent b2fd792 commit 5cb6bc6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

templates/sql.eld

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
sql-mode
2+
3+
(pgfn "CREATE OR REPLACE FUNCTION " (s function-name) "(" (s arguments) ")" n
4+
"RETURNS " (p "void") " AS $$" n
5+
"DECLARE" n> (p "-- declare variable as: name type := value;") n
6+
"BEGIN" n>
7+
r> n
8+
"END;" n
9+
"$$ LANGUAGE plpgsql" n
10+
)

0 commit comments

Comments
 (0)