summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/assignmapper.py
Commit message (Collapse)AuthorAgeFilesLines
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-72/+0
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* - Added PendingDeprecationWarning supportJason Kirtland2008-03-291-1/+1
| | | | - Deprecation decorator is now a real decorator
* test suite deprecation rampageJason Kirtland2008-01-091-12/+19
|
* - sessionmaker module is out, replaced with simple function in session.pyMike Bayer2007-08-021-0/+1
| | | | | | - 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()
* - 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-271-30/+29
| | | | maintenance branch in branches/rel_0_3.
* - forwards-compatibility with 0.4: added one(), first(), andMike Bayer2007-06-201-1/+1
| | | | | all() to Query - added selectone_by() to assignmapper
* - added filter(), filter_by() to assignmapperMike Bayer2007-06-021-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
* - 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.
* - added selectfirst(), selectfirst_by() to assign_mapper [ticket:467]Mike Bayer2007-02-221-1/+1
|
* further work on insuring clear_mappers() really works. assignmapper identifiedMike Bayer2007-01-301-0/+1
| | | | | as a much trickier thing to clean out. added a unit test so that if any new collections get introduced we are still testing.
* added "instances" to assign_mapper funcs [ticket:433]Mike Bayer2007-01-231-2/+2
|
* - added "validate=False" argument to assign_mapper, if True will insure that ↵Mike Bayer2007-01-201-1/+5
| | | | | | only mapped attributes are named [ticket:426]
* added "options" to exported query APIMike Bayer2007-01-161-1/+1
|
* added mapper return value to assign_mapperMike Bayer2006-11-241-0/+1
|
* reorganizing classnames a bit, flagging "private" classes in the sql package,Mike Bayer2006-10-171-2/+2
| | | | | getting the generated docs to look a little nicer. fixes to extensions, sqlsoup etc. to be compatible with recent API tweaks
* assignmapper was setting is_primary=True, causing all sorts of mayhemMike Bayer2006-07-201-1/+0
| | | | by not raising an error when redundant mappers were set up, fixed
* added count/count_by to assignmapper, plus a test in activemapper to try it outMike Bayer2006-07-131-1/+1
|
* Replaced tab spacing with plain spaces.sean2006-06-211-3/+3
|
* doc updates, added 'save' method to assignmapperMike Bayer2006-05-271-1/+1
|
* added 0.1.7 changes to changelogMike Bayer2006-05-251-0/+3
| | | | | latest sqlsoup from 0.1.7 s. cazzells fixes to assignmapper, threadlocal
* merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1Mike Bayer2006-05-251-0/+34