Permalink
Switch branches/tags
Nothing to show
Commits on Aug 9, 2012
Commits on Jul 29, 2012
  1. Rip out the inflector's cache

    evanmiller committed Jul 29, 2012
    The cache contains a race condition between the time when a process
    checks for a registered process called "re_cache" and the time that
    it creates and registers the process itself. If a cache is to exist
    at all, it needs to follow OTP principles. In the meantime I am ripping
    it out.
  2. Merge pull request #25 from helllamer/master

    evanmiller committed Jul 29, 2012
    adapter_pgsql: fix 'false' boolean attribute support.
Commits on Jul 28, 2012
  1. Better handling of PG date times and null values

    evanmiller committed Jul 28, 2012
    Thanks to Guido Witmond
Commits on Jul 26, 2012
  1. Merge branch 'master' of github.com:evanmiller/boss_db

    Evan Miller committed Jul 26, 2012
  2. Update Aleppo

    Evan Miller committed Jul 26, 2012
Commits on Jul 22, 2012
  1. Revamp the boss_db:find/N API

    evanmiller committed Jul 22, 2012
    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 Jul 18, 2012
  1. Merge pull request #24 from matthusby/patch-2

    evanmiller committed Jul 18, 2012
    Return undefined if the property doesn't exist on this record in mongodb...
Commits on Jul 3, 2012
  1. Fix @spec arity

    evanmiller committed Jul 3, 2012
Commits on Jun 18, 2012
  1. Merge pull request #20 from jgordor/master

    evanmiller committed Jun 18, 2012
    fix mysql_driver update query with undefined foreign key value
Commits on Jun 14, 2012
  1. Merge pull request #18 from jgordor/master

    evanmiller committed Jun 14, 2012
    Important fixes in mysql driver
  2. Fixes in mysql driver:

    jgordor committed Jun 14, 2012
    1. Severe bug, pack_value(false) => '', now false is FALSE for boolean type
    2. undefined in insert querys are ignored, but now in update querys set's the value to null
Commits on Jun 4, 2012
  1. Fix init in Tyrant adapter

    Evan Miller committed Jun 4, 2012
Commits on May 30, 2012
  1. Possibly fix Riak search, again

    Evan Miller committed May 30, 2012
  2. Spurious export, param queries not in mysql yet

    Evan Miller committed May 30, 2012
  3. Parameterized queries for Postgres

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

    Evan Miller committed May 28, 2012
    Thanks to Rubén GO
  2. Move erlmc:start to start function, not init

    Evan Miller committed May 28, 2012
    Because Erlmc does its own pool management we just want to call
    erlmc:start once. init is the wrong place to call this because
    it is called once for each process in the worker pool.
  3. Return {ok, undefined} from Memcache adapter

    Evan Miller committed May 28, 2012
  4. Merge pull request #15 from jgordor/master

    evanmiller committed May 28, 2012
    Fix cache adapter name bug & help to try to fix boss_cache pool problem
  5. Fix cache adapter name bug

    jgordor committed May 28, 2012
Commits on May 23, 2012
  1. Merge pull request #14 from kotedo/master

    evanmiller committed May 23, 2012
    Fixed typo
  2. Fixed typo. Might need revamping

    Kai Janson committed May 23, 2012
  3. Merge pull request #13 from gwitmond/patches-for-evan

    evanmiller committed May 23, 2012
    Make sure the value that goes in the WHERE-clause is the number, not the...
Commits on May 22, 2012
  1. Be nice to developers and give a error message when a boss_db record …

    gwitmond committed May 22, 2012
    …attribute is not available in the database result set.
    
    Much better than a hard to find badarg!
  2. Make sure the value that goes in the WHERE-clause is the number, not …

    gwitmond committed May 22, 2012
    …the whole "record-idnum" string. That broke the SQl-query.
    
    It allows to assert([boss_db:find("type-nnn")] == boss_db:find(type, [{id, equals, "type-nnn"}])
  3. Merge pull request #12 from gwitmond/patches-for-evan

    evanmiller committed May 22, 2012
    Adding missing function clause to let cb_admin/module handle null-atoms ...
  4. Adding missing function clause to let cb_admin/module handle null-ato…

    gwitmond committed May 22, 2012
    …ms from the PostgresQL-adapter.
Commits on Apr 23, 2012
  1. Fix shard initialization/termination

    Evan Miller committed Apr 23, 2012
  2. Gracefully handle dropped connections

    Evan Miller committed Apr 23, 2012
    Thanks to langxianzhe@ for the initial patch