Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- postgresql://xxxxx.us-east-1.redshift.amazonaws.com:5439/customer?user=xxxxx&password=xxxxx
- import records
- >>> conn_url = 'postgresql://xxxxx.us-east-1.redshift.amazonaws.com:5439/customer?user=xxxxx&password=xxxxx'
- >>> db = records.Database(conn_url)
- File "<stdin>", line 1, in <module>
- File "/opt/extractor/virtualenv/hge/lib/python2.7/site-packages/records.py", line 177, in __init__
- self.db = psycopg2.connect(self.db_url, cursor_factory=RecordsCursor)
- File "/opt/extractor/virtualenv/hge/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
- conn = _connect(dsn, connection_factory=connection_factory, async=async)
- psycopg2.OperationalError: invalid connection option "postgresql://xxxxx.us-east-1.redshift.amazonaws.com:5439/customer?user"
- psycopg2==2.6.1
- records==0.3.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement