pg_anon

command module
v0.0.0-...-0dc1121 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 7 Imported by: 0

README

pg_anon

This is a simple tool for anonymizing a dump file from a PostgreSQL database. The resulting dump can be loaded back into an new database using standard tools (e.g. psql(1)).

This is heavily inspired by pg-anon and pg-anonymizer.

How to build

The pg_anon is written in Go. You need to setup the Go compiler and setup environment first to build it.

go get github.com/calazans10/pg_anon

If it went well you should be able to run it:

pg_anon

If not check that you have $GOPATH/bin in your $PATH.

How to use

A quick example:

pg_anon -d dump.sql -o anon.sql -f name,first_name,last_name,email,phone_number:phone

Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Submit a pull request

License

MIT © Jeferson Farias Calazans

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL