rap2hpoutre / pg-anonymizer

Dump anonymized PostgreSQL database with a NodeJS CLI
https://raph.site
MIT License
228 stars 32 forks source link

Error trying to load into a different database using - option #20

Open mangvlad opened 2 years ago

mangvlad commented 2 years ago

Getting this error:

npx: installed 112 in 4.544s ERROR: syntax error at or near "Launching" LINE 1: Launching pg_dump

imreACTmd commented 2 years ago

Will you please share your entire command? Also I do not think the version in npx has the latest changes yet.

mangvlad commented 2 years ago

what would be the best way to run it without npx? it looks like the version from npx has no support for configFile either...

imreFitos commented 2 years ago

Let me see if I can get it into a publishable place soon.

imreACTmd commented 2 years ago

what would be the best way to run it without npx? it looks like the version from npx has no support for configFile either...

If you check out the current main branch from github, do an npm install in the directory, then run bin/run postgresql://url in the directory, it will work

imreACTmd commented 2 years ago

@mangvlad please try using "npx pg-anonymizer@0.5.1"