Skip to content

Commit

Permalink
update sqlalchemy url (simphony#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
razekmh committed Jul 6, 2022
1 parent 7de48b7 commit 3913259
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/jupyter/multiple_wrappers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,14 @@
}
],
"source": [
"from sqlalchemy.engine import URL",
"print(\"Input data to connect to Postgres table!\")\n",
"user = input(\"User: \")\n",
"pwd = getpass(\"Password: \")\n",
"db_name = input(\"Database name: \")\n",
"host = input(\"Host: \")\n",
"port = int(input(\"Port [5432]: \") or 5432)\n",
"postgres_url = 'postgres://%s:%s@%s:%s/%s' % (user, pwd, host, port, db_name)"
"postgres_url = URL.create(\"postgresql\", user, pwd, host=host, database=db_name)"
]
},
{
Expand Down Expand Up @@ -356,4 +357,4 @@
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
}

0 comments on commit 3913259

Please sign in to comment.