summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/mapping
Commit message (Collapse)AuthorAgeFilesLines
...
* bind_to fixMike Bayer2006-02-141-1/+1
|
* docstring...Mike Bayer2006-02-141-4/+1
|
* latest reorgnanization of the objectstore, the Session is a simpler object ↵Mike Bayer2006-02-142-90/+94
| | | | that just maintains begin/commit state
* lazy load column fix courtesy raul garcia garciaMike Bayer2006-02-141-1/+1
|
* added 'post_update' attribute to PropertyLoader, means to defer processing ↵Mike Bayer2006-02-132-10/+29
| | | | of this property until after the object has been saved, and then to re-sync and force an update. used to break otherwise intra-row cycles. added for "many-to-one" so far.
* more refactoring to session/UOW scope management...under construction !Mike Bayer2006-02-121-31/+38
|
* some tweaks to options, use_alias, live removedMike Bayer2006-02-121-3/+2
|
* assertionMike Bayer2006-02-121-2/+1
|
* 'column' function (make a ColumnClause) is more useful from sql module, ↵Mike Bayer2006-02-121-5/+1
| | | | removed 'column' (make a ColumnProperty) from __init__
* cleanup and organization of code mostly in properties, making SyncRules clearer,Mike Bayer2006-02-122-125/+173
| | | | also "foreignkey" property can be a list, particularly for a self-referential table with a multi-column join condition
* more hammering of defaults. ORM will properly execute defaults and ↵Mike Bayer2006-02-111-6/+13
| | | | post-fetch rows that contain passive defaults
* put assertion in to check for secondary table if secondaryjoin explicitMike Bayer2006-02-111-0/+2
|
* added before_update/after_updateMike Bayer2006-02-111-3/+14
|
* objectstore refactored to have more flexible scopes for UnitOfWorkMike Bayer2006-02-102-76/+183
| | | | | | central access point is now a Session object which maintains different kinds of scopes for collections of one or more UnitOfWork objects individual object instances get bound to a specific Session
* commented out print statementMike Bayer2006-02-091-1/+1
|
* deprecated "selectalias" argument on eager loader, do use_alias=TrueMike Bayer2006-02-094-119/+116
| | | | | | | | | | | | | "eager alias" flag will propigate to child eager loaders so the full query comes out OK. mappers/properties have overhauled "copy" methodology. mappers are no longer "singleton" and no longer have elaborate "hash_key" methods - there is a primary mapper associated with a class which is done via direct dictionary relationship, and the options() method on mapper does its own lighter-weight caching of created mappers. the unitofwork does extra work with the mappers it receives to insure its dealing with "the primary" mapper, so that properties can be more liberal about which mapper they reference (i.e. not the primary one). options() works better but still could use a looking-at to see that its not wasteful. simplified mapper() method in __init__.
* trying to get mappers to support having versions against different tables ↵Mike Bayer2006-02-073-6/+18
| | | | | | | for the same class, that dont affect the original class mapper and create objects with the correct identity key support in EagerLoader to better handle "selectalias" when the eager mapper hits another eager mapper, etc
* added cascade_mappers function. somewhat experimental !Mike Bayer2006-02-061-1/+50
|
* added is_dirty method at module level and within UnitOfWorkMike Bayer2006-02-051-3/+18
|
* __init__ monkeypatch looks for __init__ in the class' dict rather than via ↵Mike Bayer2006-02-051-1/+1
| | | | getattr(), to bypass inheritance lookups
* started PassiveDefault, which is a "database-side" default. mapper will goMike Bayer2006-02-051-0/+8
| | | | fetch the most recently inserted row if a table has PassiveDefault's set on it
* fixes involving when child object from list items is None - onetoone must ↵Mike Bayer2006-02-041-5/+7
| | | | pass, objectstore.testbackwardsmanipulations with postgres passes
* one-to-one support:Mike Bayer2006-02-041-10/+6
| | | | | | | | | rolled the BackrefExtensions into a single GenericBackrefExtension to handle all combinations of list/nonlist properties (such as one-to-one) tweak to properties.py which may receive "None" as "added_items()", in the case of a scalar property instead of a list PropHistory masquerades as a List on the setattr/append delattr/remove side to make one-to-one's automatically work
* switched objectstore begin/commit behavior to do "reentrant counter"Mike Bayer2006-02-031-4/+14
|
* deprecated relation(class, table)Mike Bayer2006-02-021-19/+4
| | | | changed unit tests/examples to not do it
* merged new cyclical dependency codeMike Bayer2006-02-013-110/+223
| | | | EagerRelation gets a fix w/ regards to selectalias
* moved dict init to setattr for auto-__init__ thingMike Bayer2006-02-011-1/+1
|
* took out print statementMike Bayer2006-01-281-4/+8
|
* topological sort can detect cycles, and assemble them into a "big node" with allMike Bayer2006-01-281-21/+62
| | | | the nodes in the cycle aggregated into one node
* working on representing longer circular relationshipsMike Bayer2006-01-281-5/+35
|
* converted LEFT,RIGHT, CENTER to more reasonable namesMike Bayer2006-01-271-33/+33
|
* task dump checks for NoneMike Bayer2006-01-271-4/+8
|
* refactoring of objectstore to handle cleaning up after itself with lessMike Bayer2006-01-263-51/+45
| | | | | | | instruction from properties/mapper objectstore gets an assertion for appending a deleted item mapper has fix for inheritance mapper selectone() etc. set "limit=1"
* adds a traversed list to the list of things to clean upMike Bayer2006-01-241-1/+1
|
* added some echo arguments for uow, pool, propigated from the engineMike Bayer2006-01-211-6/+8
|
* adjustment to dependencies+childtasks attached to circular task - they goMike Bayer2006-01-211-24/+24
| | | | | on just the lead task instead of each per-object task. more tweaks to dumper output
* rewrote objectstore loggingMike Bayer2006-01-211-41/+76
|
* comment out dump, reverse check for self-ref task/delete-matchupMike Bayer2006-01-201-4/+4
|
* when breaking a circular task into child tasks, propigate the child tasks ↵Mike Bayer2006-01-201-7/+21
| | | | and the non-self-referring dependencies of the lead task to each child task...else they dont happen !
* assign_mapper will create a default __init__ method if one doesnt existMike Bayer2006-01-161-0/+6
|
* checks for relations that override columns and raises an error if ↵Mike Bayer2006-01-131-2/+5
| | | | override_columns_ok not set
* r818@lightspeed: robert | 2006-01-12 18:32:38 +1100Robert Leftwich2006-01-121-1/+5
| | | | Added class name to the TypeError string to make it easier to find constructor problems when mapper is constructing complex mappings
* id key uses hash_key off of table now that its a short stringMike Bayer2006-01-111-3/+2
|
* r815@lightspeed: robert | 2006-01-11 10:15:14 +1100Robert Leftwich2006-01-101-2/+3
| | | | Replaced use of repr() with custom identifiers in identity related areas to improve performance
* identity map->weakvaluedictionaryMike Bayer2006-01-101-1/+1
|
* added count func to mapperMike Bayer2006-01-081-2/+19
|
* added 'import_instance' to properly deal with out-of-imap objects,Mike Bayer2006-01-081-2/+39
| | | | added assertion upon commit that all mapped objects are properly present in the identity map
* modified 'primarytable' idea and 'inheritance' to work better with improved ↵Mike Bayer2006-01-082-49/+58
| | | | | | relational algrebra stuff
* mapper - pks_by_table should store keys in order even tho we dont have a ↵Mike Bayer2006-01-052-14/+32
| | | | | | | | failure case lazyloader can lazyload using mapper.get() if it is appropriate, saves a lot of queries a few more assertions in properties in prep for relations against select statement mappers mapper get() clause is determined upfront to avoid re-generating it
* copyright->2005,2006Mike Bayer2006-01-035-5/+5
|