Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG.connect deprecation #26

Open
paronix opened this issue Jun 26, 2018 · 0 comments
Open

PG.connect deprecation #26

paronix opened this issue Jun 26, 2018 · 0 comments

Comments

@paronix
Copy link

paronix commented Jun 26, 2018

When running dbdiff on a postgres database I get the following message and nothing else happens:

(node:9660) DeprecationWarning: PG.connect is deprecated - please see the upgrade guide at https://node-postgres.com/guides/upgrading

I found a fork of this repo that seems to have updated to PG7 (https://github.com/contra/dbdiff) and installed that one, but that gives me an authentication error. Strange thing is though that the username in the authentication error is not the username that I entered in any of the connection info for dbdiff.

update
I applied the pg7 changes to the code of this repo as well, and get the same authentication error. This is the command I issue:

dbdiff postgres://testuser:[email protected]:5432/test postgres://testuser:[email protected]:5432/test2

and this is the error:

error: password authentication failed for user "Ron" at Connection.parseE (C:\Users\Ron\AppData\Roaming\npm\node_modules\dbdiff\node_modules\pg\lib\connection.js:567:11) at Connection.parseMessage (C:\Users\Ron\AppData\Roaming\npm\node_modules\dbdiff\node_modules\pg\lib\connection.js:391:17) at Socket.<anonymous> (C:\Users\Ron\AppData\Roaming\npm\node_modules\dbdiff\node_modules\pg\lib\connection.js:129:22) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:607:20)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant