| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
0.4 development continues at /sqlalchemy/branches/rel_0_4
|
|
|
|
| |
- Deprecation decorator is now a real decorator
|
| |
|
|
|
|
|
|
| |
- 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()
|
|
|
|
|
|
|
|
| |
differences:
* added a deprecation warning
* check if a method with that name already exist in the class
- more foolproof deprecation warning for scalar kwarg
|
|
|
|
| |
maintenance branch in branches/rel_0_3.
|
|
|
|
|
| |
all() to Query
- added selectone_by() to assignmapper
|
| |
|
| |
|
|
|
|
| |
#551
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
as a much trickier thing to clean out. added a unit test so that if any new collections get introduced
we are still testing.
|
| |
|
|
|
|
|
|
| |
only mapped
attributes are named [ticket:426]
|
| |
|
| |
|
|
|
|
|
| |
getting the generated docs to look a little nicer.
fixes to extensions, sqlsoup etc. to be compatible with recent API tweaks
|
|
|
|
| |
by not raising an error when redundant mappers were set up, fixed
|
| |
|
| |
|
| |
|
|
|
|
|
| |
latest sqlsoup from 0.1.7
s. cazzells fixes to assignmapper, threadlocal
|
|
|