summaryrefslogtreecommitdiff
path: root/examples/inheritance
Commit message (Collapse)AuthorAgeFilesLines
* modernize and repair inheritance examplesMike Bayer2017-05-164-173/+334
| | | | | | | | | | | remarkably, the examples for concrete and single were still using classical mappings. Ensure all three examples use modern declarative patterns, each illustrate the identical set of query operations. Use back_populates, flat=True for joins, etc. ensure flake8 linting, correct links and add a link back from newly reworked inheritance documentation. Change-Id: I8465a9badbb0eda804f457ccac599f051ee3c27c
* - add a new sphinx extension "viewsource". takes advantage of part of the ↵Mike Bayer2013-11-094-1/+7
| | | | | | | | | 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.
* - reorganize docs so expression, schema are broken out into subfiles, ↵Mike Bayer2013-08-181-0/+1
| | | | | | they're too big - fix the targeting of module names moved around by using custom handlers for "Bases", etc.
* - the raw 2to3 runMike Bayer2013-04-273-13/+13
| | | | - went through examples/ and cleaned out excess list() calls
* whack more long lines in very old docstringsMike Bayer2013-02-021-2/+2
|
* -whitespace bonanza, contdMike Bayer2012-07-283-15/+15
|
* - [feature] New standalone function with_polymorphic()Mike Bayer2012-04-232-125/+135
| | | | | | | | | | | provides the functionality of query.with_polymorphic() in a standalone form. It can be applied to any entity within a query, including as the target of a join in place of the "of_type()" modifier. [ticket:2333] - redo a large portion of the inheritance docs in terms of declarative, new with_polymorphic() function - upgrade examples/inheritance/polymorph, rename to "joined"
* - whitespace removal bonanzaMike Bayer2011-01-022-5/+5
|
* - a large hill to climb. Added declarative examples to all theMike Bayer2010-08-301-0/+8
| | | | | | | | | | | | | | "basic relationship" examples, cleaned up the examples and added some more explicitness. Also renamed "treenodes" to "nodes" and added self-referential declarative example. - Added info/examples on how to join tables directly when querying with joined table inheritance. - Starting to talk about hybrids in the main mapper docs some more. introducoed the idea that synonyms are on their way out. - SQL expressions as mapped attributes also gets better verbiage, alternative approaches to them, including hybrids. - modernized the hybrid example. - object_session() as a standalone function wasn't documented ?!
* - modernizing examplesMike Bayer2010-08-083-62/+98
|
* - converted all lazy=True|False|None to 'select'|'joined'|'noload'Mike Bayer2010-03-241-1/+1
| | | | | - 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-4/+4
| | | | | | 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-0/+257
- 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