Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jul 22, 2012
  1. @evanmiller

    Revamp the boss_db:find/N API

    evanmiller authored
    This change eliminates boss_db:find/4-6 in favor of specifying search
    options in a proplist as the third argument to boss_db:find/3. Valid
    options are:
      'limit' - max # of records to return
      'offset' - # of records to skip
      'order_by' - attribute to sort on
      'descending' - whether values should go from high to low
    The new API is easier to remember and the options have been modeled
    after their SQL equivalents. Note that since 'descending' takes a
    boolean it can be specified as a bare word, e.g.
      boss_db:find(house, [], [{order_by, price}, descending])
    This change also eliminates the need to specify whether values
    should be treated as numbers or strings when sorting. Instead
    this information is inferred from the model's type hints. But
    only the Tyrant adapter allows specifying the sort logic so most
    users won't need the type hints anyway.
    Finally, a BossRecord's -has options have been modified to be
    consistent with the new boss_db:find options. 'sort_by' has
    been renamed 'order_by', and 'sort_order' has been replaced
    with 'descending'. E.g.
      -has({rooms, many, [{order_by, size}, descending]).
Commits on May 30, 2012
  1. Possibly fix Riak search, again

    Evan Miller authored
Commits on May 28, 2012
  1. Possibly fix Riak search functions

    Evan Miller authored
    Thanks to Rubén GO
Commits on Mar 14, 2012
  1. Fix Riak find/2

    Evan Miller authored
Commits on Feb 25, 2012
  1. start/stop for app, init/terminate for connection

    Evan Miller authored
Commits on Feb 23, 2012
  1. Cast attribute values to specified types

    Evan Miller authored
Commits on Feb 11, 2012
  1. Update riakc; use list_keys for empty queries

    Evan Miller authored
  2. Manage connections with Poolboy

    Evan Miller authored
    Instead of single named processes for BossCache and BossDB, use worker
    pools managed by Poolboy. This should increase throughput in high-load
    systems. Still needs to be tested, and options should be added for
    configuring the number of processes in the pools.
Commits on Feb 4, 2012
  1. BossDB is now its own project

    Evan Miller authored
Something went wrong with that request. Please try again.