├── .docker └── Dockerfile ├── .github ├── release.yml └── workflows │ └── publish.yml ├── .gitignore ├── LICENSE ├── README.md ├── ctx ├── args.go ├── conf.go └── context.go ├── doc └── examples │ ├── drop │ ├── MySQL │ │ ├── input.sql │ │ ├── nxs-data-anonymizer.conf │ │ └── output.sql │ ├── PostgreSQL │ │ ├── input │ │ ├── nxs-data-anonymizer.conf │ │ └── output │ └── Readme.md │ ├── filters │ ├── MySQL │ │ ├── input.sql │ │ ├── nxs-data-anonymizer.conf │ │ └── output.sql │ ├── PostgreSQL │ │ ├── input │ │ ├── nxs-data-anonymizer.conf │ │ └── output │ └── Readme.md │ ├── links │ ├── MySQL │ │ ├── input.sql │ │ ├── nxs-data-anonymizer.conf │ │ └── output.sql │ ├── PostgreSQL │ │ ├── input │ │ ├── nxs-data-anonymizer.conf │ │ └── output │ └── Readme.md │ ├── security │ ├── MySQL │ │ ├── input.sql │ │ ├── nxs-data-anonymizer.conf │ │ └── output.sql │ ├── PostgreSQL │ │ ├── input │ │ ├── nxs-data-anonymizer.conf │ │ └── output │ └── Readme.md │ └── variables │ ├── MySQL │ ├── input.sql │ ├── nxs-data-anonymizer.conf │ └── output.sql │ ├── PostgreSQL │ ├── input │ ├── nxs-data-anonymizer.conf │ └── output │ └── Readme.md ├── ds └── mysql │ └── mysql.go ├── go.mod ├── go.sum ├── interfaces └── anonymizer.go ├── main.go ├── misc ├── errors.go ├── security.go ├── template.go ├── token.go └── values.go ├── modules ├── anonymizers │ ├── mysql │ │ ├── .testdata │ │ │ ├── mysql_test.dos.in.sql │ │ │ ├── mysql_test.dos.out.sql │ │ │ ├── mysql_test.in.sql │ │ │ └── mysql_test.out.sql │ │ ├── dh.go │ │ ├── mysql.go │ │ ├── mysql_test.go │ │ ├── security_types.go │ │ └── states.go │ └── pgsql │ │ ├── .testdata │ │ ├── pgsql_test.dos.in.sql │ │ ├── pgsql_test.dos.out.sql │ │ ├── pgsql_test.in.sql │ │ └── pgsql_test.out.sql │ │ ├── dh.go │ │ ├── pgsql.go │ │ ├── pgsql_test.go │ │ ├── security_types.go │ │ └── states.go ├── filters │ └── relfilter │ │ ├── column.go │ │ ├── filter.go │ │ └── filter_test.go └── progress_reader │ └── progress_reader.go └── routines └── anonymizer └── anonymizer.go /.docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/.docker/Dockerfile -------------------------------------------------------------------------------- /.github/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/.github/release.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.project 2 | /.vscode 3 | /.tmp 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/README.md -------------------------------------------------------------------------------- /ctx/args.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/ctx/args.go -------------------------------------------------------------------------------- /ctx/conf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/ctx/conf.go -------------------------------------------------------------------------------- /ctx/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/ctx/context.go -------------------------------------------------------------------------------- /doc/examples/drop/MySQL/input.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/drop/MySQL/input.sql -------------------------------------------------------------------------------- /doc/examples/drop/MySQL/nxs-data-anonymizer.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/drop/MySQL/nxs-data-anonymizer.conf -------------------------------------------------------------------------------- /doc/examples/drop/MySQL/output.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/drop/MySQL/output.sql -------------------------------------------------------------------------------- /doc/examples/drop/PostgreSQL/input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/drop/PostgreSQL/input -------------------------------------------------------------------------------- /doc/examples/drop/PostgreSQL/nxs-data-anonymizer.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/drop/PostgreSQL/nxs-data-anonymizer.conf -------------------------------------------------------------------------------- /doc/examples/drop/PostgreSQL/output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/drop/PostgreSQL/output -------------------------------------------------------------------------------- /doc/examples/drop/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/drop/Readme.md -------------------------------------------------------------------------------- /doc/examples/filters/MySQL/input.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/filters/MySQL/input.sql -------------------------------------------------------------------------------- /doc/examples/filters/MySQL/nxs-data-anonymizer.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/filters/MySQL/nxs-data-anonymizer.conf -------------------------------------------------------------------------------- /doc/examples/filters/MySQL/output.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/filters/MySQL/output.sql -------------------------------------------------------------------------------- /doc/examples/filters/PostgreSQL/input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/filters/PostgreSQL/input -------------------------------------------------------------------------------- /doc/examples/filters/PostgreSQL/nxs-data-anonymizer.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/filters/PostgreSQL/nxs-data-anonymizer.conf -------------------------------------------------------------------------------- /doc/examples/filters/PostgreSQL/output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/filters/PostgreSQL/output -------------------------------------------------------------------------------- /doc/examples/filters/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/filters/Readme.md -------------------------------------------------------------------------------- /doc/examples/links/MySQL/input.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/links/MySQL/input.sql -------------------------------------------------------------------------------- /doc/examples/links/MySQL/nxs-data-anonymizer.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/links/MySQL/nxs-data-anonymizer.conf -------------------------------------------------------------------------------- /doc/examples/links/MySQL/output.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/links/MySQL/output.sql -------------------------------------------------------------------------------- /doc/examples/links/PostgreSQL/input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/links/PostgreSQL/input -------------------------------------------------------------------------------- /doc/examples/links/PostgreSQL/nxs-data-anonymizer.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/links/PostgreSQL/nxs-data-anonymizer.conf -------------------------------------------------------------------------------- /doc/examples/links/PostgreSQL/output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/links/PostgreSQL/output -------------------------------------------------------------------------------- /doc/examples/links/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/links/Readme.md -------------------------------------------------------------------------------- /doc/examples/security/MySQL/input.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/security/MySQL/input.sql -------------------------------------------------------------------------------- /doc/examples/security/MySQL/nxs-data-anonymizer.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/security/MySQL/nxs-data-anonymizer.conf -------------------------------------------------------------------------------- /doc/examples/security/MySQL/output.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/security/MySQL/output.sql -------------------------------------------------------------------------------- /doc/examples/security/PostgreSQL/input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/security/PostgreSQL/input -------------------------------------------------------------------------------- /doc/examples/security/PostgreSQL/nxs-data-anonymizer.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/security/PostgreSQL/nxs-data-anonymizer.conf -------------------------------------------------------------------------------- /doc/examples/security/PostgreSQL/output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/security/PostgreSQL/output -------------------------------------------------------------------------------- /doc/examples/security/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/security/Readme.md -------------------------------------------------------------------------------- /doc/examples/variables/MySQL/input.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/variables/MySQL/input.sql -------------------------------------------------------------------------------- /doc/examples/variables/MySQL/nxs-data-anonymizer.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/variables/MySQL/nxs-data-anonymizer.conf -------------------------------------------------------------------------------- /doc/examples/variables/MySQL/output.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/variables/MySQL/output.sql -------------------------------------------------------------------------------- /doc/examples/variables/PostgreSQL/input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/variables/PostgreSQL/input -------------------------------------------------------------------------------- /doc/examples/variables/PostgreSQL/nxs-data-anonymizer.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/variables/PostgreSQL/nxs-data-anonymizer.conf -------------------------------------------------------------------------------- /doc/examples/variables/PostgreSQL/output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/variables/PostgreSQL/output -------------------------------------------------------------------------------- /doc/examples/variables/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/doc/examples/variables/Readme.md -------------------------------------------------------------------------------- /ds/mysql/mysql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/ds/mysql/mysql.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/go.sum -------------------------------------------------------------------------------- /interfaces/anonymizer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/interfaces/anonymizer.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/main.go -------------------------------------------------------------------------------- /misc/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/misc/errors.go -------------------------------------------------------------------------------- /misc/security.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/misc/security.go -------------------------------------------------------------------------------- /misc/template.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/misc/template.go -------------------------------------------------------------------------------- /misc/token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/misc/token.go -------------------------------------------------------------------------------- /misc/values.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/misc/values.go -------------------------------------------------------------------------------- /modules/anonymizers/mysql/.testdata/mysql_test.dos.in.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/mysql/.testdata/mysql_test.dos.in.sql -------------------------------------------------------------------------------- /modules/anonymizers/mysql/.testdata/mysql_test.dos.out.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/mysql/.testdata/mysql_test.dos.out.sql -------------------------------------------------------------------------------- /modules/anonymizers/mysql/.testdata/mysql_test.in.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/mysql/.testdata/mysql_test.in.sql -------------------------------------------------------------------------------- /modules/anonymizers/mysql/.testdata/mysql_test.out.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/mysql/.testdata/mysql_test.out.sql -------------------------------------------------------------------------------- /modules/anonymizers/mysql/dh.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/mysql/dh.go -------------------------------------------------------------------------------- /modules/anonymizers/mysql/mysql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/mysql/mysql.go -------------------------------------------------------------------------------- /modules/anonymizers/mysql/mysql_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/mysql/mysql_test.go -------------------------------------------------------------------------------- /modules/anonymizers/mysql/security_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/mysql/security_types.go -------------------------------------------------------------------------------- /modules/anonymizers/mysql/states.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/mysql/states.go -------------------------------------------------------------------------------- /modules/anonymizers/pgsql/.testdata/pgsql_test.dos.in.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/pgsql/.testdata/pgsql_test.dos.in.sql -------------------------------------------------------------------------------- /modules/anonymizers/pgsql/.testdata/pgsql_test.dos.out.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/pgsql/.testdata/pgsql_test.dos.out.sql -------------------------------------------------------------------------------- /modules/anonymizers/pgsql/.testdata/pgsql_test.in.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/pgsql/.testdata/pgsql_test.in.sql -------------------------------------------------------------------------------- /modules/anonymizers/pgsql/.testdata/pgsql_test.out.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/pgsql/.testdata/pgsql_test.out.sql -------------------------------------------------------------------------------- /modules/anonymizers/pgsql/dh.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/pgsql/dh.go -------------------------------------------------------------------------------- /modules/anonymizers/pgsql/pgsql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/pgsql/pgsql.go -------------------------------------------------------------------------------- /modules/anonymizers/pgsql/pgsql_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/pgsql/pgsql_test.go -------------------------------------------------------------------------------- /modules/anonymizers/pgsql/security_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/pgsql/security_types.go -------------------------------------------------------------------------------- /modules/anonymizers/pgsql/states.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/anonymizers/pgsql/states.go -------------------------------------------------------------------------------- /modules/filters/relfilter/column.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/filters/relfilter/column.go -------------------------------------------------------------------------------- /modules/filters/relfilter/filter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/filters/relfilter/filter.go -------------------------------------------------------------------------------- /modules/filters/relfilter/filter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/filters/relfilter/filter_test.go -------------------------------------------------------------------------------- /modules/progress_reader/progress_reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/modules/progress_reader/progress_reader.go -------------------------------------------------------------------------------- /routines/anonymizer/anonymizer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nixys/nxs-data-anonymizer/HEAD/routines/anonymizer/anonymizer.go --------------------------------------------------------------------------------