summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiayang <a13813258259@163.com>2021-08-19 02:23:51 -0700
committerGitHub <noreply@github.com>2021-08-19 02:23:51 -0700
commit7a63540a84f8285ea35a42e15282dad384d77061 (patch)
tree475d7c063629ea38745936aeb4788f0413643f28
parent4331c1902ae341158b597769f4e4991c0a7d5485 (diff)
downloadsqlalchemy-7a63540a84f8285ea35a42e15282dad384d77061.tar.gz
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.
-rw-r--r--doc/build/glossary.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/build/glossary.rst b/doc/build/glossary.rst
index 4bdaa8bcb..d861a1789 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**