summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext
Commit message (Collapse)AuthorAgeFilesLines
* test suite deprecation rampageJason Kirtland2008-01-091-12/+19
|
* More overloads: fix cascades for += on a list relation, added operator ↵Jason Kirtland2008-01-051-0/+31
| | | | support to association proxied lists.
* Fixed in-place set mutation operator support [ticket:920]Jason Kirtland2008-01-041-6/+39
|
* cut down a good deal of Join construction overheadMike Bayer2007-11-181-2/+2
|
* - Removed equality, truth and hash() testing of mapped instances. MappedJason Kirtland2007-11-031-0/+3
| | | | classes can now implement arbitrary __eq__ and friends. [ticket:676]
* - Removed unused util.hash()Jason Kirtland2007-10-311-15/+15
| | | | - Fixed __hash__ for association proxy collections
* Make ActiveMapper support viewonly propertyPaul Johnston2007-10-171-11/+10
|
* Assorted unused imports from pyflakes, docstring tweaks, formatting.Jason Kirtland2007-10-131-1/+0
|
* Make ActiveMapper use scoped_session instead of SessionContextPaul Johnston2007-10-121-19/+6
|
* Doc updates.Jason Kirtland2007-09-071-31/+97
|
* Small change in ActiveMapper to make it work with Python 2.3Paul Johnston2007-09-041-1/+2
|
* Expand custom assocproxy getter/setter support to scalar proxiesJason Kirtland2007-08-231-2/+13
|
* Allow custom getter/setters to be specified for a standard AssociationProxyJason Kirtland2007-08-231-7/+29
|
* `from foo import (name, name)` isn't valid syntax for 2.3. ah well.Jason Kirtland2007-08-211-0/+1
| | | | omitting modules from sqlalchemy.__all__...
* ReST docstring fixJason Kirtland2007-08-191-1/+1
|
* 1. Module layout. sql.py and related move into a package called "sql".Mike Bayer2007-08-181-3/+3
| | | | | | | | | | | | 2. compiler names changed to be less verbose, unused classes removed. 3. Methods on Dialect which return compilers, schema generators, identifier preparers have changed to direct class references, typically on the Dialect class itself or optionally as attributes on an individual Dialect instance if conditional behavior is needed. This takes away the need for Dialect subclasses to know how to instantiate these objects, and also reduces method overhead by one call for each one. 4. as a result of 3., some internal signatures have changed for things like compiler() (now statement_compiler()), preparer(), etc., mostly in that the dialect needs to be passed explicitly as the first argument (since they are just class references now). The compiler() method on Engine and Connection is now also named statement_compiler(), but as before does not take the dialect as an argument. 5. changed _process_row function on RowProxy to be a class reference, cuts out 50K method calls from insertspeed.py
* update activemapper backrefs for r3340Jason Kirtland2007-08-171-1/+2
|
* fix url for 04 docsJonathan Ellis2007-08-081-1/+1
|
* update SS docs to 0.4Jonathan Ellis2007-08-081-52/+35
|
* - sessionmaker module is out, replaced with simple function in session.pyMike Bayer2007-08-022-50/+18
| | | | | | - scoping/class instrumenting behavior of sessionmaker moved into new scoping module which implements scoped_session() (subject to potential name change) - SessionContext / assignmapper are deprecated, replaced with scoped_session()
* - SessionContext and assignmapper are deprecatedMike Bayer2007-08-011-2/+3
| | | | | | - Session function is removed - all replaced with new sessionmaker() function. description at: http://www.sqlalchemy.org/trac/wiki/WhatsNewIn04#create_sessionSessionContextassignmapperDeprecated
* Added EXT_CONTINUE and EXT_STOP for MapperExtensions; EXT_PASS is a synonym ↵Jason Kirtland2007-08-012-4/+4
| | | | | | for EXT_CONTINUE. Repointed docs and examples to EXT_CONTINUE
* - restored old assign_mapper monkey patched query methods but with two ↵Gaëtan de Menten2007-07-311-2/+16
| | | | | | | | differences: * added a deprecation warning * check if a method with that name already exist in the class - more foolproof deprecation warning for scalar kwarg
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-277-385/+145
| | | | maintenance branch in branches/rel_0_3.
* - the various "engine" arguments, such as "engine", "connectable",Mike Bayer2007-07-121-2/+3
| | | | | | | | | "engine_or_url", "bind_to", etc. are all present, but deprecated. they all get replaced by the single term "bind". you also set the "bind" of MetaData using metadata.bind = <engine or connection>. this is part of 0.4 forwards compatibility where "bind" is the only keyword. [ticket:631]
* - Deprecated DynamicMetaData- use ThreadLocalMetaData or MetaData insteadJason Kirtland2007-07-062-4/+4
| | | | | - Deprecated BoundMetaData- use MetaData instead - Removed DMD and BMD from documentation
* - forwards-compatibility with 0.4: added one(), first(), andMike Bayer2007-06-201-1/+1
| | | | | all() to Query - added selectone_by() to assignmapper
* - Fixed typo blocking some assoc proxy dict assignments, added testJason Kirtland2007-06-161-1/+1
|
* - Iteration over dict association proxies is now dict-like, notJason Kirtland2007-06-142-23/+48
| | | | | | InstrumentedList-like (e.g. over keys instead of values). - Don't tightly bind proxies to source collections (fixes #597) - Handle slice objects on orderinglist's __setitem__
* - added filter(), filter_by() to assignmapperMike Bayer2007-06-021-1/+1
|
* add a couple expository notes to docs; fix a couple rst buglets. use modern ↵Jonathan Ellis2007-06-011-12/+28
| | | | mapper style (i.e., no need to add it to klass as an attribute).
* Oops, Python 2.5 ternary operator snuck in.Jason Kirtland2007-05-031-3/+12
|
* - Test assoc proxy lazy loads, fixed __set__ race on single scalar assocsJason Kirtland2007-05-031-1/+6
|
* - New association proxy implementation, implementing complete proxies to ↵Jason Kirtland2007-05-031-80/+584
| | | | | | list, dict and set-based relation collections (and scalar relations). Extensive tests. - Added util.duck_type_collection
* - added sqlalchemy.ext.orderinglist, a custom list class that synchronizes ↵Jason Kirtland2007-05-021-0/+181
| | | | an object attribute with that object's position in the list
* - small fix to SelectResultsExt to not bypass itself duringMike Bayer2007-04-301-1/+1
| | | | select().
* correct typo-equivalent mistakes in some comments/docstringsGaëtan de Menten2007-04-271-1/+1
|
* wrap __name__ settings in a try/except for 2.3 compatMike Bayer2007-04-251-2/+8
|
* - assign_mapper names methods according to their keys (i.e. __name__)Mike Bayer2007-04-241-0/+2
| | | | #551
* - big fix to AssociationProxy so that multiple AssociationProxyMike Bayer2007-04-231-2/+3
| | | | objects can be associated with a single association collection.
* - column label and bind param "truncation" also generateMike Bayer2007-03-281-2/+2
| | | | | | | | | | | deterministic names now, based on their ordering within the full statement being compiled. this means the same statement will produce the same string across application restarts and allowing DB query plan caching to work better. - cleanup to sql.ClauseParameters since it was just falling apart, API made more explicit - many unit test tweaks to adjust for bind params not being "pre" truncated, changes to ClauseParameters
* integrated docutils formatting into generated documentation;Mike Bayer2007-03-171-4/+5
| | | | restructuredtext fixes throughout docstrings
* - the full featureset of the SelectResults extension has been mergedMike Bayer2007-03-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into a new set of methods available off of Query. These methods all provide "generative" behavior, whereby the Query is copied and a new one returned with additional criterion added. The new methods include: filter() - applies select criterion to the query filter_by() - applies "by"-style criterion to the query avg() - return the avg() function on the given column join() - join to a property (or across a list of properties) outerjoin() - like join() but uses LEFT OUTER JOIN limit()/offset() - apply LIMIT/OFFSET range-based access which applies limit/offset: session.query(Foo)[3:5] distinct() - apply DISTINCT list() - evaluate the criterion and return results no incompatible changes have been made to Query's API and no methods have been deprecated. Existing methods like select(), select_by(), get(), get_by() all execute the query at once and return results like they always did. join_to()/join_via() are still there although the generative join()/outerjoin() methods are easier to use. - the return value for multiple mappers used with instances() now returns a cartesian product of the requested list of mappers, represented as a list of tuples. this corresponds to the documented behavior. So that instances match up properly, the "uniquing" is disabled when this feature is used. - strings and columns can also be sent to the *args of instances() where those exact result columns will be part of the result tuples. - query() method is added by assignmapper. this helps with navigating to all the new generative methods on Query.
* - options() method on SelectResults now implemented "generatively"Mike Bayer2007-03-071-2/+4
| | | | like the rest of the SelectResults methods [ticket:472]
* migrated (most) docstrings to pep-257 format, docstring generator using ↵Mike Bayer2007-02-255-187/+314
| | | | | | straight <pre> + trim() func for now. applies most of [ticket:214], compliemnts of Lele Gaifax
* - added selectfirst(), selectfirst_by() to assign_mapper [ticket:467]Mike Bayer2007-02-221-1/+1
|
* - added options() method to SelectResults, equivalent to query.options() ↵Mike Bayer2007-02-101-0/+8
| | | | [ticket:472]
* - implemented foreign_keys argument on relation() [ticket:385]Mike Bayer2007-02-101-1/+1
| | | | | | | - PropertyLoader figures out accurate remote_side collection based on foreign_keys, legacy foreignkey, primary/secondaryjoin/polymorphic - reworked lazyloader, sync to work straight off foreign_keys/ remote_side collections
* - added optional __table_opts__ dictionary to ActiveMapper, will send kw ↵Mike Bayer2007-02-071-2/+6
| | | | | | options to Table objects [ticket:462]
* - added distinct() method to SelectResults. generally should only make a ↵Mike Bayer2007-02-051-0/+6
| | | | | | difference when using count().