From: Jiayang Date: Thu, 19 Aug 2021 09:23:51 +0000 (-0700) Subject: mysql://user:pass@host/dbname instead of pass:host X-Git-Tag: rel_1_4_24~67^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a63540a84f8285ea35a42e15282dad384d77061;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git mysql://user:pass@host/dbname instead of pass:host Summary: Reading [1 sqlalchemy.future.Engine](https://docs.sqlalchemy.org/en/14/core/future.html#sqlalchemy.future.Engine) and [2 sqlalchemy.create_engine](https://docs.sqlalchemy.org/en/14/core/engines.html#sqlalchemy.create_engine). I fond @ should be used between pass & host. Test Plan: I checked with sqlalchemy 1.4.22 locally and I think @ should be used. --- diff --git a/doc/build/glossary.rst b/doc/build/glossary.rst index 4bdaa8bcb9..d861a17894 100644 --- a/doc/build/glossary.rst +++ b/doc/build/glossary.rst @@ -37,7 +37,7 @@ Glossary from sqlalchemy.orm import sessionmaker - engine = create_engine("mysql://user:pass:host/dbname", future=True) + engine = create_engine("mysql://user:pass@host/dbname", future=True) Session = sessionmaker(bind=engine, future=True) **ORM Queries in 2.0 style**