diff options
author | Gord Thompson <gord@gordthompson.com> | 2020-12-12 09:29:12 -0700 |
---|---|---|
committer | Gord Thompson <gord@gordthompson.com> | 2020-12-12 16:40:34 -0700 |
commit | 89ccab00e33c9a80f2d94e656a489b63c7d51e7a (patch) | |
tree | 77fa7cc383354981b902b3c92a8cecaab1e1298e /lib/sqlalchemy/dialects/postgresql/base.py | |
parent | d55971119aa48590416193b8b0e0f54aa0e97c82 (diff) | |
download | sqlalchemy-89ccab00e33c9a80f2d94e656a489b63c7d51e7a.tar.gz |
Remove autoload=True references
Remove references to deprecated ``autoload=True`` in docs and code samples.
Also remove test/dialect/test_firebird.py and test/dialect/test_sybase.py
as those tests have already been incorporated into the external dialects.
Change-Id: I9788c27c971e3b2357f4cfa2d4698a6af727b073
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index e41e489c0..8f2653c74 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -349,7 +349,7 @@ reflection process as follows:: ... conn.execute(text("SET search_path TO test_schema, public")) ... meta = MetaData() ... referring = Table('referring', meta, - ... autoload=True, autoload_with=conn) + ... autoload_with=conn) ... <sqlalchemy.engine.result.CursorResult object at 0x101612ed0> @@ -369,7 +369,7 @@ dialect-specific argument to both :class:`_schema.Table` as well as >>> with engine.connect() as conn: ... conn.execute(text("SET search_path TO test_schema, public")) ... meta = MetaData() - ... referring = Table('referring', meta, autoload=True, + ... referring = Table('referring', meta, ... autoload_with=conn, ... postgresql_ignore_search_path=True) ... @@ -963,7 +963,7 @@ will report on these two constructs distinctly; in the case of the index, the key ``duplicates_constraint`` will be present in the index entry if it is detected as mirroring a constraint. When performing reflection using -``Table(..., autoload=True)``, the UNIQUE INDEX is **not** returned +``Table(..., autoload_with=engine)``, the UNIQUE INDEX is **not** returned in :attr:`_schema.Table.indexes` when it is detected as mirroring a :class:`.UniqueConstraint` in the :attr:`_schema.Table.constraints` collection . |