{"id":16058960,"url":"https://github.com/andyatkinson/db-stuff","last_synced_at":"2025-04-05T08:16:04.432Z","repository":{"id":66952272,"uuid":"146019466","full_name":"andyatkinson/db-stuff","owner":"andyatkinson","description":"Tutorials from PostgreSQL Stored Procedures","archived":false,"fork":false,"pushed_at":"2018-08-24T17:12:47.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T15:50:48.082Z","etag":null,"topics":["postgresql","sql"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andyatkinson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-24T17:12:32.000Z","updated_at":"2021-01-26T14:08:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"accde21c-afec-4163-8dde-412b0ef50235","html_url":"https://github.com/andyatkinson/db-stuff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fdb-stuff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fdb-stuff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fdb-stuff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fdb-stuff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyatkinson","download_url":"https://codeload.github.com/andyatkinson/db-stuff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305946,"owners_count":20917208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["postgresql","sql"],"created_at":"2024-10-09T03:41:11.852Z","updated_at":"2025-04-05T08:16:04.411Z","avatar_url":"https://github.com/andyatkinson.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nTutorials from [PostgreSQL Stored Procedures](http://www.postgresqltutorial.com/postgresql-stored-procedures/)\n\n#### Stored procedures\n\n`\\df` to list all stored procedures\n\nView stored procedure code with `\\df+ function`, e.g. `\\df+ inc` or `\\ef func` to edit the function\n\n`inc` - increment a number\nUsage: `SELECT inc(20);`\n\n\n`get_sum(a,b)`\nUsage: `select get_sum(1,2);`\n\n\n`hi_lo(a,b,c)`\nUsage: `select hi_lo(1,2,3);`\n\n\n`sum_avg(NUMERIC[])`\nUsage: `select sum_avg(1,2,3,4,5);`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyatkinson%2Fdb-stuff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyatkinson%2Fdb-stuff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyatkinson%2Fdb-stuff/lists"}