diff options
| author | Federico Caselli <cfederico87@gmail.com> | 2022-07-13 23:18:57 +0200 |
|---|---|---|
| committer | Federico Caselli <cfederico87@gmail.com> | 2022-07-13 23:18:57 +0200 |
| commit | 758dc7ed2b322069b80fb21b5cc3296d2a8c6c92 (patch) | |
| tree | 8156cf9715471a0f09ed288ae42ee0ea22423491 /lib/sqlalchemy | |
| parent | fa8a7715a3f184c708a5e1625f63849844667da4 (diff) | |
| download | sqlalchemy-758dc7ed2b322069b80fb21b5cc3296d2a8c6c92.tar.gz | |
Minor cleanup
- remove unnecessary postgresql visit that's equal to the default compiler
- clarify type_annotation_map documentation
Change-Id: I0c1fa212d06f6af799a5894802574250622c855e
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 5 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/decl_api.py | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 56bc02b23..20903b55f 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -2188,11 +2188,6 @@ class PGDDLCompiler(compiler.DDLCompiler): text += self._define_constraint_validity(constraint) return text - def visit_drop_table_comment(self, drop): - return "COMMENT ON TABLE %s IS NULL" % self.preparer.format_table( - drop.element - ) - def visit_create_enum_type(self, create): type_ = create.element diff --git a/lib/sqlalchemy/orm/decl_api.py b/lib/sqlalchemy/orm/decl_api.py index 9c095c740..e6e69a9e0 100644 --- a/lib/sqlalchemy/orm/decl_api.py +++ b/lib/sqlalchemy/orm/decl_api.py @@ -910,7 +910,8 @@ class registry: inter-base relationships. :param type_annotation_map: optional dictionary of Python types to - SQLAlchemy :class:`_types.TypeEngine` classes or instances. This + SQLAlchemy :class:`_types.TypeEngine` classes or instances. + The provided dict will update the default type mapping. This is used exclusively by the :class:`_orm.MappedColumn` construct to produce column types based on annotations within the :class:`_orm.Mapped` type. |
