lp:~jkakar/storm/sqlobject-is-empty
- Get this branch:
- bzr branch lp:~jkakar/storm/sqlobject-is-empty
Branch merges
- Robert Collins (community): Approve
- Stuart Bishop (community): Approve
- Storm Developers: Pending requested
-
Diff: 65 lines (+27/-1)3 files modifiedstorm/sqlobject.py (+10/-0)
storm/store.py (+1/-1)
tests/sqlobject.py (+16/-0)
Related bugs
Bug #612351: ResultSet doesn't implement __nonzero__ | Low | Fix Released |
Related blueprints
Branch information
Recent revisions
- 365. By Jamu Kakar
-
- SQLObjectResultSet now has an is_empty method. It should be used
in preference to the existing __nonzero__ implementation. - 364. By Jamu Kakar
-
Merged result-
set-in- subselects [r=bigkevmcd, therve] [f=337494] A new ResultSet.
get_select_ expr method returns a Select expression
configured to return a user-defined set of columns, based on the
settings of result set. The primary purpose of this functionality
is to make it easy to convert a result set into a form that can be
used as a subselect. - 362. By Jamu Kakar
-
Merged is-empty-
strips- order-by [r=bigkevmcd, lifeless] [f=246200] ResultSet.is_empty strips the ORDER BY clause, if one is present,
before issuing a query. The result is the same but will perform
better in cases where the query would match a large number of rows. - 361. By Thomas Herve
-
Merge mutable-
alive-check- 553334 [r=jkakar,salgado] [f=553334] Add a checkpoint call when an object is updated from the cache with values from
a recent query, to detect changes from mutables correctly, and not issue useless
(or even harmful) updates from other objects. - 359. By James Henstridge
-
Detect when per-thread stores are used in the wrong thread
ZStorm manages per-thread stores that get joined to the current thread's
transaction when used. If those stores get passed between threads, they
can be joined to the wrong transaction. This can lead to bugs that are
difficult to reproduce and debug. With this change, such use results in
an error.
[f=348815] [r=therve,jkakar] - 358. By Jamu Kakar
-
Merged reference-
set-order- by [r=niemeyer,sidnei] [f=580037] The order_by property defined for a ReferenceSet can now be
specified as string, in order to avoid circular dependency issues.
The property column is resolved after import time. - 356. By James Henstridge
-
Add an API for blocking access to connections and stores.
This is intended to let applications detect and handle unexpected
database access.
[r=therve,jkakar]
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:storm