Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {
- "host": "<<your host>>",
- "user": "<<your user>>",
- "dbname": "<<your dbname>>",
- "sslcert": "<<path to sslcert>>",
- "sslkey": "<<path to sslkey>>",
- "sslrootcert": "<<path to verification ca chain>>",
- "sslmode": "verify-full"
- }
- db = sqlalchemy.create_engine('postgresql+psycopg2://', connect_args=args)
- connection = db.connect()
Add Comment
Please, Sign In to add comment