{"id":21530719,"url":"https://github.com/p6m7g8-dotfiles/p6pgsql","last_synced_at":"2026-03-08T23:03:35.114Z","repository":{"id":238220635,"uuid":"796128115","full_name":"p6m7g8-dotfiles/p6pgsql","owner":"p6m7g8-dotfiles","description":"P6 Dotfiles: POSIX.2 PostgreSQL utility functions for database management","archived":false,"fork":false,"pushed_at":"2026-03-07T21:01:20.000Z","size":23,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-07T22:59:53.696Z","etag":null,"topics":["bash","cli","p6","p6m7g8","pgsql","postgres","sh","shell","terminal","zsh"],"latest_commit_sha":null,"homepage":"https://continuouslearning.io","language":"Shell","has_issues":false,"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/p6m7g8-dotfiles.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-05T02:38:59.000Z","updated_at":"2026-03-07T17:34:47.000Z","dependencies_parsed_at":"2024-05-10T16:49:32.971Z","dependency_job_id":"f1ca57c0-f134-40ea-a244-a36b8faad2db","html_url":"https://github.com/p6m7g8-dotfiles/p6pgsql","commit_stats":null,"previous_names":["p6m7g8-dotfiles/p6pgsql"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/p6m7g8-dotfiles/p6pgsql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p6m7g8-dotfiles%2Fp6pgsql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p6m7g8-dotfiles%2Fp6pgsql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p6m7g8-dotfiles%2Fp6pgsql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p6m7g8-dotfiles%2Fp6pgsql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p6m7g8-dotfiles","download_url":"https://codeload.github.com/p6m7g8-dotfiles/p6pgsql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p6m7g8-dotfiles%2Fp6pgsql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30276606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bash","cli","p6","p6m7g8","pgsql","postgres","sh","shell","terminal","zsh"],"created_at":"2024-11-24T02:09:53.411Z","updated_at":"2026-03-08T23:03:35.109Z","avatar_url":"https://github.com/p6m7g8-dotfiles.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# P6's POSIX.2: p6pgsql\n\n## Table of Contents\n\n- [Badges](#badges)\n- [Summary](#summary)\n- [Contributing](#contributing)\n- [Code of Conduct](#code-of-conduct)\n- [Usage](#usage)\n  - [Hooks](#hooks)\n  - [Functions](#functions)\n- [Hierarchy](#hierarchy)\n- [Author](#author)\n\n## Badges\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0)\n\n## Summary\n\nTODO: Add a short summary of this module.\n\n## Contributing\n\n- [How to Contribute](\u003chttps://github.com/p6m7g8-dotfiles/.github/blob/main/CONTRIBUTING.md\u003e)\n\n## Code of Conduct\n\n- [Code of Conduct](\u003chttps://github.com/p6m7g8-dotfiles/.github/blob/main/CODE_OF_CONDUCT.md\u003e)\n\n## Usage\n\n### Hooks\n\n- `deps` -\u003e `p6df::modules::p6pgsql::deps()`\n- `init` -\u003e `p6df::modules::p6pgsql::init(_module, dir)`\n\n### Functions\n\n#### p6pgsql\n\n##### p6pgsql/init.zsh\n\n- `p6df::modules::p6pgsql::deps()`\n- `p6df::modules::p6pgsql::init(_module, dir)`\n  - Args:\n    - _module -\n    - dir -\n\n#### p6pgsql/lib\n\n##### p6pgsql/lib/cli.sh\n\n- `p6_pgsql_cli(user, host, db, ...)`\n  - Args:\n    - user -\n    - host -\n    - db -\n    - ... -\n- `stream  = p6_pgsql_cli_sql_run_cmd(user, host, db, cmd)`\n  - Args:\n    - user -\n    - host -\n    - db -\n    - cmd -\n- `stream  = p6_pgsql_cli_sql_run_from_file(user, host, db, file)`\n  - Args:\n    - user -\n    - host -\n    - db -\n    - file -\n- `stream  = p6_pgsql_filter_sql_run(user, host, db)`\n  - Args:\n    - user -\n    - host -\n    - db -\n\n##### p6pgsql/lib/db.sh\n\n- `p6_pgsql_db_create(user, host, db)`\n  - Args:\n    - user -\n    - host -\n    - db -\n- `p6_pgsql_db_drop(user, host, db)`\n  - Args:\n    - user -\n    - host -\n    - db -\n\n##### p6pgsql/lib/table.sh\n\n- `p6_pgsql_filter_pipe_to_table(user, host, db, table, column_list, [sep=|])`\n  - Args:\n    - user -\n    - host -\n    - db -\n    - table -\n    - column_list -\n    - OPTIONAL sep - [|]\n\n## Hierarchy\n\n```text\n.\n├── init.zsh\n├── lib\n│   ├── cli.sh\n│   ├── db.sh\n│   └── table.sh\n└── README.md\n\n2 directories, 5 files\n```\n\n## Author\n\nPhilip M. Gollucci \u003cpgollucci@p6m7g8.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp6m7g8-dotfiles%2Fp6pgsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp6m7g8-dotfiles%2Fp6pgsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp6m7g8-dotfiles%2Fp6pgsql/lists"}