Commits on Mar 11, 2011
  1. Add use_master context decorator.

    Adds `multidb.pinning.use_master`, which is both a context manager and a
    decorator, i.e., you can do:
        >>> with use_master:
        ...     do_stuff()
    or you can do:
        >>> @use_master
        ... def do_stuff():
    James Socol committed Mar 11, 2011
Commits on Jun 18, 2010
  1. Go ahead and pin the whole of any POST request to master.

    Refactor middleware tests to save duplication.
    erikrose committed Jun 18, 2010
  2. Redo master-DB-stickiness in a different way.

    Now, instead of a post-save hook, assume any POST request is a write, and set a cookie that keeps reads on the master for 15 seconds thereafter. Assumes we manually call using() to target reads to the master for the remainder of a request after a write. Also, renamed everything from "sticky" to "pinned" by popular demand.
    erikrose committed Jun 14, 2010
Commits on Jun 11, 2010
  1. Add a StickyMasterSlaveRouter that pins a request to the master after…

    … a write.
    James Socol committed Jun 11, 2010
Commits on Feb 9, 2010
  1. bump version to 0.3

    jbalogh committed Feb 9, 2010
  2. Releasing multidb from the zamboni womb.

    Be free little one!
    jbalogh committed Feb 9, 2010