Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/instructure/px-db
Practice PostgreSQL Database Sanitization
https://github.com/instructure/px-db
Last synced: 8 days ago
JSON representation
Practice PostgreSQL Database Sanitization
- Host: GitHub
- URL: https://github.com/instructure/px-db
- Owner: instructure
- Created: 2019-05-21T21:56:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-30T19:06:40.000Z (over 5 years ago)
- Last Synced: 2024-04-14T20:26:01.879Z (7 months ago)
- Language: Go
- Size: 26.4 KB
- Stars: 0
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Practice Database Sanitizer (PostgreSQL)
## Setup
Consider the following: `git config --global url."[email protected]:".insteadOf "https://github.com/"`
- `go get -u github.com/instructure/px-db`
- OR Download the binary: Place the binary in `/usr/local/bin/` or in your Shell `$PATH`
- OR Pull the project and compile## Building Locally
```bash
go get github.com/instructure/px-db
cd $GOPATH/src/github.com/instructure/px-db
go build
```## Usage
```
px-db is for sanitizing Practice PostgreSQL TablesUsage:
px-db [flags]
px-db [command]Available Commands:
display Display data from a PostgreSQL DB
help Help about any command
plugin Run Plugins that perform custom logic for PostgreSQL DB Table Sanitization
sanitize Sanitize a PostgreSQL DBFlags:
--db-endpoint string PostgreSQL Hostname/Endpoint
--db-name string PostgreSQL Database Name
--db-port int PostgreSQL Bind Port (default 5432)
--db-ssl-mode PostgreSQL SSL Mode (default false)
--db-user string PostgreSQL User
-h, --help help for px-db
--version version for px-dbUse "px-db [command] --help" for more information about a command.
```See the `hack` directory for the Practice implementation and application.