summaryrefslogtreecommitdiff
path: root/examples/vertical/dictlike-polymorphic.py
Commit message (Collapse)AuthorAgeFilesLines
* Repair dictlike-polymorphicMike Bayer2016-05-241-1/+1
| | | | | | | | | | dictlike-polymorphic was broken by the change in 1714e0d6ef28411e9c6633018564af1cae58c3d9. Use the new style of inheritance. Fixes: #3704 Change-Id: I3509ef4bf7772dd6994daf600accf4a2c5eb6973
* - start reworking examples to include more code from the wiki.Mike Bayer2013-11-291-123/+91
| | | | | - add the other versioning examples from the wiki - modernize the dictlike examples
* - the raw 2to3 runMike Bayer2013-04-271-33/+33
| | | | - went through examples/ and cleaned out excess list() calls
* modernize some more examplesMike Bayer2013-04-271-3/+0
|
* - Adjusted dictlike-polymorphic.py exampleMike Bayer2011-09-261-8/+9
| | | | | to apply the CAST such that it works on PG, other databases. [ticket:2266]
* - rename hybrid.property_, hybrid.method to hybrid_property, hybrid_method. ↵Mike Bayer2011-01-121-35/+29
| | | | | | | more typing on the import but this is just clearer. - adapt dictlike-polymorphic.py to use hybrid.
* - remove remaining create_session() calls from examples, replace with SessionMike Bayer2010-10-241-6/+5
| | | | - replace all flush()/expunge_all() with commit()
* - The official name for the relation() function is nowMike Bayer2010-03-171-2/+2
| | | | | | relationship(), to eliminate confusion over the relational algebra term. relation() however will remain available in equal capacity for the foreseeable future. [ticket:1740]
* - mega example cleanupMike Bayer2010-01-191-2/+0
| | | | | | - added READMEs to all examples in each __init__.py and added to sphinx documentation - added versioning example - removed vertical/vertical.py, the dictlikes are more straightforward
* Lots of fixes to the code examples to specify imports explicitly.Michael Trier2009-03-311-7/+9
| | | | | | | Explicit imports make it easier for users to understand the examples. Additionally a lot of the examples were fixed to work with the changes in the 0.5.x code base. One small correction to the Case expression. Thanks a bunch to Adam Lowry! Fixes #717.
* - Added comparable_property(), adds query Comparator behavior to regular, ↵Jason Kirtland2008-03-171-22/+1
| | | | | | | unmanaged Python properties - Some aspects of MapperProperty initialization are streteched pretty thin now and need a refactor; will proceed with these on the user_defined_state branch
* - Added two new vertical dict mapping examples.Jason Kirtland2008-02-121-0/+286