]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Implement comments for tables, columns
authorFrazer McLean <frazer@frazermclean.co.uk>
Sat, 11 Jun 2016 19:47:33 +0000 (21:47 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Mar 2017 18:02:15 +0000 (14:02 -0400)
commitfadb8d61babb76ef7bdbc98279096a8900c7328d
tree2e6113d9c9ec665ed7785e4d7273b8830520e7af
parent63a7b2d2d9402b06f9bc7745eed2d98ae9f8b11c
Implement comments for tables, columns

Added support for SQL comments on :class:`.Table` and :class:`.Column`
objects, via the new :paramref:`.Table.comment` and
:paramref:`.Column.comment` arguments.   The comments are included
as part of DDL on table creation, either inline or via an appropriate
ALTER statement, and are also reflected back within table reflection,
as well as via the :class:`.Inspector`.   Supported backends currently
include MySQL, Postgresql, and Oracle.

Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com>
Fixes: #1546
Change-Id: Ib90683850805a2b4ee198e420dc294f32f15d35d
19 files changed:
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/mysql/reflection.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/ddl.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/dialect/postgresql/test_reflection.py
test/engine/test_reflection.py
test/requirements.py
test/sql/test_ddlemit.py