https://github.com/p6m7g8-dotfiles/p6pgsql
P6 Dotfiles: POSIX.2 PostgreSQL utility functions for database management
https://github.com/p6m7g8-dotfiles/p6pgsql
bash cli p6 p6m7g8 pgsql postgres sh shell terminal zsh
Last synced: 4 months ago
JSON representation
P6 Dotfiles: POSIX.2 PostgreSQL utility functions for database management
- Host: GitHub
- URL: https://github.com/p6m7g8-dotfiles/p6pgsql
- Owner: p6m7g8-dotfiles
- Created: 2024-05-05T02:38:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2026-03-07T21:01:20.000Z (4 months ago)
- Last Synced: 2026-03-07T22:59:53.696Z (4 months ago)
- Topics: bash, cli, p6, p6m7g8, pgsql, postgres, sh, shell, terminal, zsh
- Language: Shell
- Homepage: https://continuouslearning.io
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# P6's POSIX.2: p6pgsql
## Table of Contents
- [Badges](#badges)
- [Summary](#summary)
- [Contributing](#contributing)
- [Code of Conduct](#code-of-conduct)
- [Usage](#usage)
- [Hooks](#hooks)
- [Functions](#functions)
- [Hierarchy](#hierarchy)
- [Author](#author)
## Badges
[](https://opensource.org/licenses/Apache-2.0)
## Summary
TODO: Add a short summary of this module.
## Contributing
- [How to Contribute]()
## Code of Conduct
- [Code of Conduct]()
## Usage
### Hooks
- `deps` -> `p6df::modules::p6pgsql::deps()`
- `init` -> `p6df::modules::p6pgsql::init(_module, dir)`
### Functions
#### p6pgsql
##### p6pgsql/init.zsh
- `p6df::modules::p6pgsql::deps()`
- `p6df::modules::p6pgsql::init(_module, dir)`
- Args:
- _module -
- dir -
#### p6pgsql/lib
##### p6pgsql/lib/cli.sh
- `p6_pgsql_cli(user, host, db, ...)`
- Args:
- user -
- host -
- db -
- ... -
- `stream = p6_pgsql_cli_sql_run_cmd(user, host, db, cmd)`
- Args:
- user -
- host -
- db -
- cmd -
- `stream = p6_pgsql_cli_sql_run_from_file(user, host, db, file)`
- Args:
- user -
- host -
- db -
- file -
- `stream = p6_pgsql_filter_sql_run(user, host, db)`
- Args:
- user -
- host -
- db -
##### p6pgsql/lib/db.sh
- `p6_pgsql_db_create(user, host, db)`
- Args:
- user -
- host -
- db -
- `p6_pgsql_db_drop(user, host, db)`
- Args:
- user -
- host -
- db -
##### p6pgsql/lib/table.sh
- `p6_pgsql_filter_pipe_to_table(user, host, db, table, column_list, [sep=|])`
- Args:
- user -
- host -
- db -
- table -
- column_list -
- OPTIONAL sep - [|]
## Hierarchy
```text
.
├── init.zsh
├── lib
│ ├── cli.sh
│ ├── db.sh
│ └── table.sh
└── README.md
2 directories, 5 files
```
## Author
Philip M. Gollucci