Advertisement
Guest User

Untitled

a guest
Apr 19th, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. postgresql://xxxxx.us-east-1.redshift.amazonaws.com:5439/customer?user=xxxxx&password=xxxxx
  2.  
  3. import records
  4. >>> conn_url = 'postgresql://xxxxx.us-east-1.redshift.amazonaws.com:5439/customer?user=xxxxx&password=xxxxx'
  5. >>> db = records.Database(conn_url)
  6.  
  7. File "<stdin>", line 1, in <module>
  8. File "/opt/extractor/virtualenv/hge/lib/python2.7/site-packages/records.py", line 177, in __init__
  9. self.db = psycopg2.connect(self.db_url, cursor_factory=RecordsCursor)
  10. File "/opt/extractor/virtualenv/hge/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
  11. conn = _connect(dsn, connection_factory=connection_factory, async=async)
  12.  
  13. psycopg2.OperationalError: invalid connection option "postgresql://xxxxx.us-east-1.redshift.amazonaws.com:5439/customer?user"
  14.  
  15. psycopg2==2.6.1
  16. records==0.3.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement