summaryrefslogtreecommitdiff
path: root/examples/vertical
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
* simplify thisMike Bayer2013-11-301-20/+2
|
* - start reworking examples to include more code from the wiki.Mike Bayer2013-11-292-250/+155
| | | | | - add the other versioning examples from the wiki - modernize the dictlike examples
* - add a new sphinx extension "viewsource". takes advantage of part of the ↵Mike Bayer2013-11-091-0/+1
| | | | | | | | | viewcode extension to allow ad-hoc display of the source of any file, as well as a "directory listing" structure. - reorganize examples/ to take advantage of new extension. in particular, keep moving all the descriptive text for files etc. into module docstrings, taking more advantage of self-documentation.
* - the raw 2to3 runMike Bayer2013-04-272-62/+62
| | | | - went through examples/ and cleaned out excess list() calls
* modernize some more examplesMike Bayer2013-04-272-11/+6
|
* whack more long lines in very old docstringsMike Bayer2013-02-021-4/+10
|
* - 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.
* - whitespace removal bonanzaMike Bayer2011-01-021-1/+1
|
* - remove remaining create_session() calls from examples, replace with SessionMike Bayer2010-10-242-12/+10
| | | | - replace all flush()/expunge_all() with commit()
* - The official name for the relation() function is nowMike Bayer2010-03-172-7/+7
| | | | | | 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-194-203/+28
| | | | | | - 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
* Added in Examples into the test suite so they get exercised regularly. ↵Michael Trier2009-07-271-0/+0
| | | | Cleaned up some deprecation warnings in the examples.
* Lots of fixes to the code examples to specify imports explicitly.Michael Trier2009-03-313-15/+19
| | | | | | | 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.
* - fixed up vertical.pyMike Bayer2008-06-281-107/+133
| | | | | | - Fixed query.join() when used in conjunction with a columns-only clause and an SQL-expression ON clause in the join.
* - 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-122-0/+533
|
* - fixed wrong varname in session exception throwMike Bayer2007-12-051-5/+4
| | | | - fixed vertical example to just use a scoped session
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-10/+5
| | | | maintenance branch in branches/rel_0_3.
* - Deprecated DynamicMetaData- use ThreadLocalMetaData or MetaData insteadJason Kirtland2007-07-061-2/+2
| | | | | - Deprecated BoundMetaData- use MetaData instead - Removed DMD and BMD from documentation
* added proper cascade for deletesMike Bayer2007-06-301-1/+5
|
* - added an assertion within the "cascade" step of ORM relationships to checkMike Bayer2006-11-031-5/+4
| | | | | | | | that the class of object attached to a parent object is appropriate (i.e. if A.items stores B objects, raise an error if a C is appended to A.items) - new extension sqlalchemy.ext.associationproxy, provides transparent "association object" mappings. new example examples/association/proxied_association.py illustrates. - some example cleanup
* tweak for Table.create() not having a return valueMike Bayer2006-10-211-3/+5
|
* - "custom list classes" is now implemented via the "collection_class"Mike Bayer2006-10-031-4/+1
| | | | | keyword argument to relation(). the old way still works but is deprecated [ticket:212]
* late compilation of mappers. now you can create mappers in any order, and ↵Mike Bayer2006-06-081-0/+1
| | | | they will compile their internal state when first used in a query or flush operation (or their props or 'c'/'columns' attributes are used). includes various cleanups and fixes in support of the change, including some unit test changes, additional unit tests.
* merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1Mike Bayer2006-05-251-17/+30
|
* a cool example that illustrates vertical table storage, and objects that ↵Mike Bayer2006-03-261-0/+164
automatically configure themselves for this type of storage