Permalink
Switch branches/tags
Nothing to show
Commits on Jul 29, 2012
Commits on Jul 28, 2012
  1. Better handling of PG date times and null values

    Thanks to Guido Witmond
    evanmiller committed Jul 28, 2012
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

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

    Return undefined if the property doesn't exist on this record in mongodb...
    evanmiller committed Jul 18, 2012
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

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

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

    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
    jgordor committed Jun 14, 2012
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

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

    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.
    Evan Miller committed May 28, 2012
  3. Return {ok, undefined} from Memcache adapter

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

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

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

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

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

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

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

    …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"}])
    gwitmond committed May 22, 2012
  3. Merge pull request #12 from gwitmond/patches-for-evan

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

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

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

    Thanks to langxianzhe@ for the initial patch
    Evan Miller committed Apr 23, 2012
Commits on Apr 18, 2012
  1. Fix "count" in the mnesia adapter.

    Thanks to Dániel Szoboszlay
    Evan Miller committed Apr 18, 2012
Commits on Apr 13, 2012
  1. Use start_link instead of start

    Evan Miller committed Apr 13, 2012
Commits on Mar 16, 2012
  1. Compile from strings (binaries)

    Evan Miller committed Mar 16, 2012
  2. Merge pull request #5 from jgordor/master

    find_first/2-3 and find_last/2-3 helpers
    evanmiller committed Mar 16, 2012