Commits

Show all
Author Commit Message Labels Comments Date
Mike Bayer
- The "extension" argument to Session and others can now optionally be a list, supporting events sent to multiple SessionExtension instances. Session places SessionExtensions in Session.extensions.
Mike Bayer
- add an example illustrating attribute event reception.
Mike Bayer
check extensions each time; user-defined code will be appending to "extensions" after the AttributeImpl has been constructed
Mike Bayer
- starargs_as_list was not actually issuing SAPendingDeprecationWarning, fixed - implemented code cleanup from [ticket:1152] but not including using the decorators module
Mike Bayer
- Fixed bug whereby deferred() columns with a group in conjunction with an otherwise unrelated synonym() would produce an AttributeError during deferred load.
Michael Trier
Corrected typo in the mapper docs. Fixes #1159.
jason kirtland
Type processors get a dialect, not an engine...
Mike Bayer
ugh...try again
Mike Bayer
critical fix to r5028 repairs SingleThreadPool to return a connection in case one had been removed via cleanup()
Ants Aasma
- expire/fetch strategies are now default for Query.update/Query.delete. - added API docs for Query.update/Query.delete
Mike Bayer
- Fixed bug whereby changing a primary key attribute on an entity where the attribute's previous value had been expired would produce an error upon flush(). [ticket:1151]
Mike Bayer
- Session.delete() adds the given object to the session if not already present. This was a regression bug from 0.4 [ticket:1150]
Mike Bayer
- Added MSMediumInteger type [ticket:1146].
Mike Bayer
- logging scale-back; the echo_uow flag on Session is deprecated, and unit of work logging is now class level like all the other logging. - trimmed back the logging API, centralized class_logger() as the single point of configuration for logging, removed per-instance logging checks from ORM. - Engine and Pool logging remain at the instance level. The modulus of "instance ids" has been upped to 65535. I'd like to remove the modulus altogether but I do see a couple of users each month calling …
Mike Bayer
- The 'length' argument to all Numeric types has been renamed to 'scale'. 'length' is deprecated and is still accepted with a warning. [ticket:827] - The 'length' argument to MSInteger, MSBigInteger, MSTinyInteger, MSSmallInteger and MSYear has been renamed to 'display_width'. [ticket:827] - mysql._Numeric now consumes 'unsigned' and 'zerofill' from the given kw, so that the same kw can be passed along to Numeric and allow the 'length' deprecation logic to …
Mike Bayer
- fixed tearDown to reverse sorted table list
Mike Bayer
- attributes now has an "active_history" flag. This flag indicates that when new value is set or the existing value is deleted, we absolutely need the previous value to be present, including if it requires hitting a lazy loader. Since somewhere around 0.4 we had not been loading the previous value as a performance optimization. - the flag is set by a ColumnLoader which contains a primary key column. This allows the mapper to have an accurate record of a primary key column when _save_obj() performs an UPDATE. - the definition of who gets "active_history" may be expanded to include ForeignKey and any columns participating in a primaryjoin/seconddary join, so that lazyloaders can execute correctly on an expired object with…
Mike Bayer
- column_property() and synonym() both accept comparator_factory argument, allowing custom comparison functionality - made the mapper's checks for user-based descriptors when defining synonym or comparable property stronger, such that a synonym can be used with declarative without having a user-based descriptor
jason kirtland
- Another old-style mixin fix and an explicit mapper() test for it.
ged
- Fix occurences of Class.c.column_name - Fix a few typos/mistakes - removed trailing whitespaces - tried to achieve a more consistent syntax for spaces in properties declaration
Mike Bayer
- fixed a bug in declarative test which was looking for old version of history - Added "sorted_tables" accessor to MetaData, which returns Table objects sorted in order of dependency as a list. This deprecates the MetaData.table_iterator() method. The "reverse=False" keyword argument has also been removed from util.sort_tables(); use the Python 'reversed' function to reverse the results. [ticket:1033]
Mike Bayer
catch AttributeError in case thread local storage was not configured
jason kirtland
attributes.get_history now reports some zero-length slots as the empty tuple rather than an empty list. nice speed boost and memory reduction.
jason kirtland
hack tweak: exc.NO_STATE is a tuple.
jason kirtland
more ORM @decorator fliparoo
Mike Bayer
- The before_flush() hook on SessionExtension takes place before the list of new/dirty/deleted is calculated for the final time, allowing routines within before_flush() to further change the state of the Session before the flush proceeds. [ticket:1128] - Reentrant calls to flush() raise an error. This also serves as a rudimentary, but not foolproof, check against concurrent calls to Session.flush().
Mike Bayer
temporary check for unmapped class, until [ticket:1142] is resolved
Mike Bayer
- fixed primary key update for many-to-many collections where the collection had not been loaded yet [ticket:1127]
Mike Bayer
- class.someprop.in_() raises NotImplementedError pending the implementation of "in_" for relation [ticket:1140]
jason kirtland
Applied .append(x, **kw) removal patch from [ticket:1124] and general cleanup.
  1. Prev
  2. Next