]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Document and test __table_cls__
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 Sep 2017 00:00:20 +0000 (20:00 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 Sep 2017 19:50:42 +0000 (15:50 -0400)
commit20ba78f48d491f6a8909d19cb5f6dce8f03b0c07
tree4a6b4874f8cb74b8b78fb80847332a1ef3e36eeb
parent38f0bbeb5d493464a13ebe14382c5f7450ec34dc
Document and test __table_cls__

A use case has been identified for __table_cls__, which was
added in 1.0 just for the purpose of test fixtures.   Add this to
public API and ensure the target use case (conditional table generation)
stays supported.

Change-Id: I87be5bcb72205cab89871fa586663bf147450995
Fixes: #4082
(cherry picked from commit 04bbad660bcbb7b920f3e75110a7b1187d9ddc38)
(cherry picked from commit d1ca3a8d462c3c8c32afc9bccbb9d566ff02796e)
doc/build/orm/extensions/declarative/api.rst
test/ext/declarative/test_basic.py