diff options
| author | Gord Thompson <gord@gordthompson.com> | 2021-11-08 11:03:54 -0700 |
|---|---|---|
| committer | Gord Thompson <gord@gordthompson.com> | 2021-11-09 06:12:39 -0700 |
| commit | bd1be0b7e0ecd76bdf6d26fd11cc42e1a473b319 (patch) | |
| tree | bcb527a334bb3da906b8c450f93f3dc3ed683a27 /examples | |
| parent | cf404d840c15fe167518dd884b295dc99ee26178 (diff) | |
| download | sqlalchemy-bd1be0b7e0ecd76bdf6d26fd11cc42e1a473b319.tar.gz | |
De-emphasize notion of "default driver" (DBAPI)
Fixes: #6960
Even though a default driver still exists for
each dialect, remove most usages of `dialect://`
to encourage users to explicitly specify
`dialect+driver://`
Change-Id: I0ad42167582df509138fca64996bbb53e379b1af
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/large_collection/large_collection.py | 2 | ||||
| -rw-r--r-- | examples/materialized_paths/materialized_paths.py | 2 | ||||
| -rw-r--r-- | examples/postgis/postgis.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/large_collection/large_collection.py b/examples/large_collection/large_collection.py index 0f34c54dc..2b8c57232 100644 --- a/examples/large_collection/large_collection.py +++ b/examples/large_collection/large_collection.py @@ -69,7 +69,7 @@ mapper(Member, member_table) if __name__ == "__main__": engine = create_engine( - "postgresql://scott:tiger@localhost/test", echo=True + "postgresql+psycopg2://scott:tiger@localhost/test", echo=True ) meta.create_all(engine) diff --git a/examples/materialized_paths/materialized_paths.py b/examples/materialized_paths/materialized_paths.py index 37e91684c..ad2a4f4a9 100644 --- a/examples/materialized_paths/materialized_paths.py +++ b/examples/materialized_paths/materialized_paths.py @@ -106,7 +106,7 @@ class Node(Base): if __name__ == "__main__": engine = create_engine( - "postgresql://scott:tiger@localhost/test", echo=True + "postgresql+psycopg2://scott:tiger@localhost/test", echo=True ) Base.metadata.create_all(engine) diff --git a/examples/postgis/postgis.py b/examples/postgis/postgis.py index a12b824ba..2b45b98f5 100644 --- a/examples/postgis/postgis.py +++ b/examples/postgis/postgis.py @@ -233,7 +233,7 @@ if __name__ == "__main__": from sqlalchemy.ext.declarative import declarative_base engine = create_engine( - "postgresql://scott:tiger@localhost/test", echo=True + "postgresql+psycopg2://scott:tiger@localhost/test", echo=True ) metadata = MetaData(engine) Base = declarative_base(metadata=metadata) |
