{"id":14973878,"url":"https://github.com/luk4z7/plpgsql-tools","last_synced_at":"2025-06-15T03:02:20.889Z","repository":{"id":89208998,"uuid":"75145094","full_name":"luk4z7/plpgsql-tools","owner":"luk4z7","description":"Helpers for PL/pgSQL applications","archived":false,"fork":false,"pushed_at":"2017-11-30T02:52:24.000Z","size":12,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T04:13:26.466Z","etag":null,"topics":["database","plpgsql","postgres","postgresql","psql","sql"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luk4z7.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2016-11-30T02:55:32.000Z","updated_at":"2025-03-25T19:47:05.000Z","dependencies_parsed_at":"2023-06-14T10:45:07.212Z","dependency_job_id":null,"html_url":"https://github.com/luk4z7/plpgsql-tools","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/luk4z7/plpgsql-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luk4z7%2Fplpgsql-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luk4z7%2Fplpgsql-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luk4z7%2Fplpgsql-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luk4z7%2Fplpgsql-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luk4z7","download_url":"https://codeload.github.com/luk4z7/plpgsql-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luk4z7%2Fplpgsql-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259914865,"owners_count":22931323,"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":["database","plpgsql","postgres","postgresql","psql","sql"],"created_at":"2024-09-24T13:49:37.476Z","updated_at":"2025-06-15T03:02:20.878Z","avatar_url":"https://github.com/luk4z7.png","language":"PLpgSQL","readme":"### Getting started\n\n```bash\ngit clone https://github.com/luk4z7/plpgsql-tools.git\n```\n\n**Execute the file `init.sh` and enter your name of database for deploy**\n\n```bash\n\nhttps://github.com/luk4z7/plpgsql-tools for the canonical source repository\nHelpers for PL/pgSQL applications\n\n ____  _        __           ____   ___  _\n|  _ \\| |      / / __   __ _/ ___| / _ \\| |\n| |_) | |     / / '_ \\ / _` \\___ \\| | | | |\n|  __/| |___ / /| |_) | (_| |___) | |_| | |___\n|_|   |_____/_/ | .__/ \\__, |____/ \\__\\_\\_____|\n                |_|    |___/\n\nPostgreSQL\nEnter the database name:\n\n```\n\nThen just connect to the database and run a query\n```sql\nSELECT * FROM helper_functions;\n```\n\n```bash\n            function              |                                      description                                      |          parameters                                     |      return\n----------------------------------+---------------------------------------------------------------------------------------+---------------------------------------------------------+-------------------\n pg_get_definition_tables_json()  | Return all metadata of tables in the specific schema                                  | {\"schema CHARACTER VARYING\"}                            | TEXT\n pg_search_table()                | Return all tables that match a name of table or column                                | {\"keyword CHARACTER VARYING\"}                           | CHARACTER VARYING\n pg_show_activity()               | Show activity of all users and transactions in all databases                          | {\"\"}                                                    | TEXT\n pg_show_larger_object()          | Show size of all objects in database                                                  | {\"size INTEGER (in bytes)\"}                             | CHARACTER VARYING\n pg_show_size_databases()         | Show size of all databases                                                            | {\"\"}                                                    | CHARACTER VARYING\n pg_show_tables_with_oid_lo()     | Show all tables with column type oid or lo                                            | {\"\"}                                                    | CHARACTER VARYING\n pg_size_object()                 | Show information about object, size, entries, type, pages                             | {\"objectName TEXT\"}                                     | CHARACTER VARYING\n pg_terminate_backend()           | Terminate processes by status                                                         | {\"status CHARACTER VARYING\"}                            | BOOLEAN\n pg_terminate_backend_all()       | Terminate all processes except the that executing the function                        | {\"\"}                                                    | BOOLEAN\n pg_truncate_larger_tables()      | Truncate all data of large tables, WARNING, don't execute this function in production | {\"size INTEGER (in bytes)\"}                             | BOOLEAN\n pg_truncate_tables_with_search() | Truncate all tables with ilike, WARNING, don't execute this function in production    | {\"schema TEXT\",\"key for search TEXT\",\"preview BOOLEAN\"} | VOID\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluk4z7%2Fplpgsql-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluk4z7%2Fplpgsql-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluk4z7%2Fplpgsql-tools/lists"}