summaryrefslogtreecommitdiff
path: root/examples/association
Commit message (Collapse)AuthorAgeFilesLines
* fix pep8 errors in association examplePaul Brown2017-03-184-20/+33
| | | | (cherry picked from commit 6aad7fb4217ef294f68f693be5b3137c28184949)
* - add a new sphinx extension "viewsource". takes advantage of part of the ↵Mike Bayer2013-11-094-17/+18
| | | | | | | | | 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-273-10/+10
| | | | - went through examples/ and cleaned out excess list() calls
* modernize some more examplesMike Bayer2013-04-272-3/+3
|
* -whitespace bonanza, contdMike Bayer2012-07-283-4/+4
|
* - Updated the association, association proxy examplesMike Bayer2011-03-134-187/+255
| | | | | | to use declarative, added a new example dict_of_sets_with_default.py, a "pushing the envelope" example of association proxy.
* - whitespace removal bonanzaMike Bayer2011-01-021-2/+2
|
* - remove remaining create_session() calls from examples, replace with SessionMike Bayer2010-10-242-12/+8
| | | | - replace all flush()/expunge_all() with commit()
* fix some examplesMike Bayer2010-03-282-2/+2
|
* - converted all lazy=True|False|None to 'select'|'joined'|'noload'Mike Bayer2010-03-242-3/+3
| | | | | - converted all eager to joined in examples - fixed beaker/advanced.py to reference RelationshipCache
* - The official name for the relation() function is nowMike Bayer2010-03-172-6/+6
| | | | | | 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-0/+25
| | | | | | - 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-312-12/+14
| | | | | | | 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.
* synchronize inherited does not need to be called for the full mapper hierarchyMike Bayer2008-09-051-5/+6
|
* Applied .append(x, **kw) removal patch from [ticket:1124] and general cleanup.Jason Kirtland2008-08-151-49/+36
|
* - got all examples workingMike Bayer2007-09-011-4/+5
| | | | | | | - inline default execution occurs for *all* non-PK columns unconditionally - preexecute only for non-executemany PK cols on PG, Oracle, etc. - new default docs
* Association example updates, round two.Jason Kirtland2007-08-221-10/+15
|
* basic 0.4 updateJason Kirtland2007-08-221-28/+26
|
* - Deprecated DynamicMetaData- use ThreadLocalMetaData or MetaData insteadJason Kirtland2007-07-062-2/+2
| | | | | - Deprecated BoundMetaData- use MetaData instead - Removed DMD and BMD from documentation
* - Query has add_entity() and add_column() generative methods. theseMike Bayer2007-03-101-2/+2
| | | | | | | | | will add the given mapper/class or ColumnElement to the query at compile time, and apply them to the instances method. the user is responsible for constructing reasonable join conditions (otherwise you can get full cartesian products). result set is the list of tuples, non-uniqued. - fixed multi-mapper instances() to pad out shorter results with None so zip() gets everything
* patched **kwargs enhancement for [ticket:361]Mike Bayer2006-11-101-1/+8
|
* - added an assertion within the "cascade" step of ORM relationships to checkMike Bayer2006-11-032-0/+212
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