summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util
Commit message (Collapse)AuthorAgeFilesLines
...
| * clean up some of this collection stuffMike Bayer2013-05-261-16/+27
| |
| * a pass where we try to squash down as many list()/keys() combinationsMike Bayer2013-05-261-3/+3
| | | | | | | | as possible
| * do a sweep of some obvious 3kismsMike Bayer2013-05-262-1/+3
| |
| * fix serializer tests. something is wrong with non-C pickle but for some ↵Mike Bayer2013-05-262-2/+17
| | | | | | | | | | | | reason py3k's pickle seems to be OK? not sure why that is, as this is all related to http://bugs.python.org/issue998998
| * merge defaultMike Bayer2013-05-231-24/+22
| |\
| * | most of ORM passing...Mike Bayer2013-05-042-8/+6
| | |
| * | baseMike Bayer2013-05-041-3/+3
| | |
| * | that's all of engineMike Bayer2013-05-041-0/+6
| | |
| * | - unicode literals need to just be handled differently if they have utf-8Mike Bayer2013-05-042-1/+11
| | | | | | | | | | | | | | | encoded in them vs. unicode escaping. not worth figuring out how to combine these right now
| * | postgresql dialect testsMike Bayer2013-04-281-1/+2
| | |
| * | - endless isinstance(x, str)s....Mike Bayer2013-04-283-55/+88
| | |
| * | cleanupMike Bayer2013-04-271-45/+21
| | |
| * | plugging awayMike Bayer2013-04-273-46/+40
| | |
| * | work through dialectsMike Bayer2013-04-272-18/+17
| | |
| * | - the raw 2to3 runMike Bayer2013-04-274-94/+102
| | | | | | | | | | | | - went through examples/ and cleaned out excess list() calls
* | | add the py2k symbol from the 0.9 branch to support the hstore changeMike Bayer2013-05-292-1/+2
| |/ |/|
* | Fixed a bug where the routine to detect the correct kwargsMike Bayer2013-05-231-24/+22
|/ | | | | | being sent to :func:`.create_engine` would fail in some cases, such as with the Sybase dialect. [ticket:2732]
* python2.5 fixMike Bayer2013-04-181-3/+2
|
* - remove reference to _exc_info before reraise to reduce cyclesMike Bayer2013-04-181-0/+3
|
* Reworked internal exception raises that emitMike Bayer2013-04-183-2/+58
| | | | | | | | | a rollback() before re-raising, so that the stack trace is preserved from sys.exc_info() before entering the rollback. This so that the traceback is preserved when using coroutine frameworks which may have switched contexts before the rollback function returns. [ticket:2703]
* A major fix to the way in which a select() object producesMike Bayer2013-04-111-1/+0
| | | | | | | | | | | | | | | | | | | labeled columns when apply_labels() is used; this mode produces a SELECT where each column is labeled as in <tablename>_<columnname>, to remove column name collisions for a multiple table select. The fix is that if two labels collide when combined with the table name, i.e. "foo.bar_id" and "foo_bar.id", anonymous aliasing will be applied to one of the dupes. This allows the ORM to handle both columns independently; previously, 0.7 would in some cases silently emit a second SELECT for the column that was "duped", and in 0.8 an ambiguous column error would be emitted. The "keys" applied to the .c. collection of the select() will also be deduped, so that the "column being replaced" warning will no longer emit for any select() that specifies use_labels, though the dupe key will be given an anonymous label which isn't generally user-friendly. [ticket:2702]
* Make MonkeyPatchedBinaryTest not fail on Python 2.5 (which doesn't haveMarc Abramowitz2013-03-201-0/+8
| | | | the `b` notation for byte string literals)
* - remove all compat items that are pre-2.5 (hooray)Mike Bayer2013-03-095-189/+50
| | | | | | - other cleanup - don't need compat.decimal, that approach never panned out. hopefully outside libs aren't pulling it in, they shouldn't be
* happy new year (see #2645)Diana Clarke2013-01-017-7/+7
|
* Fixed a regression caused by :ticket:`2410` whereby aMike Bayer2012-12-111-4/+6
| | | | | | | | | :class:`.CheckConstraint` would apply itself back to the original table during a :meth:`.Table.tometadata` operation, as it would parse the SQL expression for a parent table. The operation now copies the given expression to correspond to the new table. [ticket:2633]
* - documentation and changelog for [ticket:2601]Mike Bayer2012-12-091-9/+57
|
* just a pep8 pass of lib/sqlalchemy/util/Diana Clarke2012-11-196-17/+79
|
* just a pep8 pass of this fileDiana Clarke2012-11-181-13/+32
|
* initializing _labels to an empty list so that the other methods don't throw ↵Diana Clarke2012-11-171-0/+1
| | | | exceptions in the None labels case, but rather return (), [], or {}. this is not backwards compatible, but doubt anyone is relying on those exceptions #2601
* adding _fields, _asdict() to KeyedTuple #2601Diana Clarke2012-11-171-0/+7
|
* __sub__ was declared twice, just increasing test coverage before I change ↵Diana Clarke2012-11-131-3/+0
| | | | anything
* - move most/all operator specific tests into test_operator, convert fully to TOTMike Bayer2012-10-242-1/+2
|
* - [bug] TypeDecorator now includes a generic repr()Mike Bayer2012-10-181-2/+4
| | | | | | | | | that works in terms of the "impl" type by default. This is a behavioral change for those TypeDecorator classes that specify a custom __init__ method; those types will need to re-define __repr__() if they need __repr__() to provide a faithful constructor representation. [ticket:2594]
* - fix annotation transfer when producing m2m backref, [ticket:2578]Mike Bayer2012-09-281-0/+3
|
* - use our new Cls.memoized_name._reset(self) method in place of all those ↵Mike Bayer2012-09-232-4/+1
| | | | | | __dict__.pop(), remove reset_memoized
* - [bug] When the primary key column of a TableMike Bayer2012-09-231-0/+2
| | | | | | | | is replaced, such as via extend_existing, the "auto increment" column used by insert() constructs is reset. Previously it would remain referring to the previous primary key column. [ticket:2525]
* - rework the test exclusions system to work on a consistent themeMike Bayer2012-09-032-2/+3
|
* Add items(), values() methods to Properties.Michael Elsdörfer2012-08-291-0/+6
|
* - [feature] The Core oeprator system now includesMike Bayer2012-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the `getitem` operator, i.e. the bracket operator in Python. This is used at first to provide index and slice behavior to the Postgresql ARRAY type, and also provides a hook for end-user definition of custom __getitem__ schemes which can be applied at the type level as well as within ORM-level custom operator schemes. Note that this change has the effect that descriptor-based __getitem__ schemes used by the ORM in conjunction with synonym() or other "descriptor-wrapped" schemes will need to start using a custom comparator in order to maintain this behavior. - [feature] postgresql.ARRAY now supports indexing and slicing. The Python [] operator is available on all SQL expressions that are of type ARRAY; integer or simple slices can be passed. The slices can also be used on the assignment side in the SET clause of an UPDATE statement by passing them into Update.values(); see the docs for examples. - [feature] Added new "array literal" construct postgresql.array(). Basically a "tuple" that renders as ARRAY[1,2,3].
* - [bug] Fixed the repr() of Enum to includeMike Bayer2012-08-081-1/+10
| | | | | the "name" and "native_enum" flags. Helps Alembic autogenerate.
* more import cleanupsMike Bayer2012-08-077-15/+12
|
* -whitespace bonanza, contdMike Bayer2012-07-282-6/+6
|
* - document the inspection systemMike Bayer2012-07-181-13/+16
|
* adjust the compat namedtuple to handle subclassingMike Bayer2012-07-171-3/+3
|
* - justify NamedTuple, now called KeyedTupleMike Bayer2012-07-162-3/+12
| | | | - fix this test
* - [feature] *Very limited* support forMike Bayer2012-07-143-12/+47
| | | | | | | | | | | | | | inheriting mappers to be GC'ed when the class itself is deferenced. The mapper must not have its own table (i.e. single table inh only) without polymorphic attributes in place. This allows for the use case of creating a temporary subclass of a declarative mapped class, with no table or mapping directives of its own, to be garbage collected when dereferenced by a unit test. [ticket:2526]
* notify_all workaround for 2.5Mike Bayer2012-06-251-1/+10
|
* add 2.5 compat for next()Mike Bayer2012-06-252-1/+6
|
* - change notify to notify_all() so all waiters exit immediately,Mike Bayer2012-06-251-1/+1
| | | | continuing [ticket:2522]
* - [moved] The InstrumentationManager interfaceMike Bayer2012-06-243-88/+16
| | | | | | | | | | | | | and the entire related system of alternate class implementation is now moved out to sqlalchemy.ext.instrumentation. This is a seldom used system that adds significant complexity and overhead to the mechanics of class instrumentation. The new architecture allows it to remain unused until InstrumentationManager is actually imported, at which point it is bootstrapped into the core.