Commits

Author Commit Message Labels Comments Date
Mike Bayer
- base_columns on ColumnElement becomes a list; as usual, because columns in CompoundSelects may extend from more than one root column. - keys_ok argument from corresponding_column() removed. no more name-based matching of columns anywhere. - DictDecorator is gone. all row translators provided by orm.util.create_row_adapter(). Mapper and contains_alias() cache the adapters on target mapper to avoid re-computation of adapters. - create_row_adapter() accepts an "equivalent_columns" map a…
jason kirtland
- SHOW CREATE TABLE output is slightly different if msyql is in ANSI mode
Mike Bayer
- rewrote and simplified the system used to "target" columns across selectable expressions. On the SQL side this is represented by the "corresponding_column()" method. This method is used heavily by the ORM to "adapt" elements of an expression to similar, aliased expressions, as well as to target result set columns originally bound to a table or selectable to an aliased, "corresponding" expression. The new rewrite features completely consistent and accurate beha…
Mike Bayer
- func. objects can be pickled/unpickled [ticket:844]
Mike Bayer
- eager loading with LIMIT/OFFSET applied no longer adds the primary table joined to a limited subquery of itself; the eager loads now join directly to the subquery which also provides the primary table's columns to the result set. This eliminates a JOIN from all eager loads with LIMIT/OFFSET. [ticket:843]
Mike Bayer
- rewritten ClauseAdapter merged from the eager_minus_join branch; this is a much simpler and "correct" version which will copy all elements exactly once, except for those which were replaced with target elements. It also can match a wider variety of target elements including joins and selects on identity alone.
jason kirtland
Added a profiled benchmark for orm attribute modification & flush
jason kirtland
- Swap operator.eq for lambda x,y: x==y - Some docstring re-formatting
jason kirtland
Formatting for 0.4.1
jason kirtland
Added some more notes for maxdb
jason kirtland
- Removed equality, truth and hash() testing of mapped instances. Mapped classes can now implement arbitrary __eq__ and friends. [ticket:676]
Mike Bayer
- removed "name" attribute from FromClause, Join, Select, CompoundSelect. its needless and led to some very strange anonymous label names - removed what was apparently cruft in some column-targeting code
ram
added small clarification on single-table inheritance mapper def
Mike Bayer
doc updates for save_on_init=False, merge(...dont_save=True)
Mike Bayer
- extra merge test - merge with dont_load also propagates _state.modified
Mike Bayer
- merge() includes a keyword argument "dont_load=True". setting this flag will cause the merge operation to not load any data from the database in response to incoming detached objects, and will accept the incoming detached object as though it were already present in that session. Use this to merge detached objects from external caching systems into the session.
jason kirtland
More improvements to testlib's mapper decorator
jason kirtland
Tweaks for assert_unordered_result
jason kirtland
Added AssertMixin.assert_unordered_result
Mike Bayer
- session checks more carefully when determining "object X already in another session"; e.g. if you pickle a series of objects and unpickle (i.e. as in a Pylons HTTP session or similar), they can go into a new session without any conflict - added stricter checks around session.delete() similar to update() - shored up some old "validate" stuff in session/uow
jason kirtland
Added rowset() testing helper.
jason kirtland
Fixed truth-evaluation of mapped objects (part of [ticket:676]
Mike Bayer
- merged factor_down_bindparams branch. - removed ClauseParameters object; compiled.params returns a regular dictionary now, as well as result.last_inserted_params()/last_updated_params(). - various code trimming, method removals.
jason kirtland
Added command line options to add tripwires for __hash__, __eq__ and __nonzero__ on mapped classes.
jason kirtland
- A more efficient IdentitySet
Mike Bayer
- split ScalarInstrumentedAttribute into a "scalar" and an "object" version. The "object" version loads the existing value on set/del, fires events, and handles trackparent operations; the "scalar" version does not. - column loaders now use the "scalar" version of InstrumentedAttribute, so that event handlers etc. don't fire off for regular column attribute operations. - some adjustments to AttributeHistory to work properly for non-loaded attributes - deferred column attr…
Mike Bayer
dont call up new session unless save_on_init
Ants Aasma
- also added proxying of save_or_update to scoped sessions. - session.update() raises an error when updating an instance that is already in the session with a different identity - adjusted zoomarks lower limits so I can get a nice clean run
Mike Bayer
added REAL to reflection list
Ants Aasma
Added proxying of __contains__ and __iter__ methods for scoped sessions
  1. Prev
  2. Next