| 1 | { |
| 2 | "Postgres Function": { |
| 3 | "prefix": [ |
| 4 | "pf", |
| 5 | "postgres-function" |
| 6 | ], |
| 7 | "description": "Create a postgres function.", |
| 8 | "body": [ |
| 9 | "CREATE OR REPLACE FUNCTION ${1:name}(${2:vars})", |
| 10 | "RETURNS ${3:return_type}", |
| 11 | "LANGUAGE plpgsql", |
| 12 | "AS \\$\\$", |
| 13 | "BEGIN", |
| 14 | " ${4:logic}", |
| 15 | "END; \\$\\$;" |
| 16 | ] |
| 17 | }, |
| 18 | "New Template": { |
| 19 | "prefix": [ |
| 20 | "new-template" |
| 21 | ], |
| 22 | "description": "description", |
| 23 | "body": [ |
| 24 | "body" |
| 25 | ] |
| 26 | } |
| 27 | } |