Skip to content
Commits on Jul 25, 2011
  1. Locking mochiweb to 1.5.1

    Kevin Smith committed Jul 25, 2011
Commits on Jul 5, 2011
  1. @benoitc

    forgot to update readme

    benoitc committed Jul 5, 2011
  2. @benoitc
  3. @benoitc

    bump version

    benoitc committed Jul 5, 2011
  4. @benoitc

    typo

    benoitc committed Jul 5, 2011
  5. @benoitc

    add link to NEWS in overview.

    benoitc committed Jul 5, 2011
  6. @benoitc

    typo

    benoitc committed Jul 5, 2011
  7. @benoitc

    add NEWS

    benoitc committed Jul 5, 2011
  8. @benoitc

    just return

    benoitc committed Jul 5, 2011
  9. @benoitc
  10. @benoitc

    add couchbeam_view:fold/4 and couchbeam_view:fold/5 method

    1> couchbeam:start(),
    1> S = couchbeam:server_connection(),
    1> {ok, Db} = couchbeam:open_db(S, "testdb"),
    1>
    1> couchbeam_view:fold(fun(Row, Acc) -> [Row|Acc] end, [], Db,
    'all_docs').
    [{[{<<"id">>,<<"29dcfaf8df8a321f18378254b5bb9138">>},
           {<<"key">>,<<"29dcfaf8df8a321f18378254b5bb9138">>},
           {<<"value">>,
            {[{<<"rev">>,<<"1-967a00dff5e02add41819138abb3284d">>}]}}]},
         {[{<<"id">>,<<"236ecb86e51d7b9697403d75c0000d80">>},
           {<<"key">>,<<"236ecb86e51d7b9697403d75c0000d80">>},
           {<<"value">>,
            {[{<<"rev">>,
               <<"1-967a00dff5e02add41819138abb3284d">>}]}}]}]
    benoitc committed Jul 5, 2011
  11. @benoitc
  12. @benoitc
  13. @benoitc

    move old view api to couchbeam_oldview module (easier to port old code

    doing like this rather than using renamed functions).
    
    Mark couchbeam:all_docs and couchbeam:view functions deprecated.
    benoitc committed Jul 5, 2011
Commits on Jul 4, 2011
  1. @benoitc

    fix issue #50. Thanks

    benoitc committed Jul 5, 2011
  2. @benoitc

    new view api. It now support view results streaming (more efficient for

    big views).
    
    Added:
    
    - couchbeam_view:fetch/1, couchbeam_view:fetch/2, couchbeam_view:fetch/3
    - couchbeam_view:stream/2, couchbeam_view:stream/3,
      couchbeam_view:stream/4
    - couchbeam_count/1, couchbeam_count/2, couchbeam_count/3
    - couchbeam_first/1, couchbeam_first/2, couchbeam_first/3
    
    Functions are now more "erlangish" and options have been changes to
    view_options():
    
    -type view_option() :: {key, binary()} | {start_docid, binary()}
        | {end_docid, binary()} | {start_key, binary()}
        | {end_key, binary()} | {limit, integer()}
        | {stale, stale()}
        | descending
        | {skip, integer()}
        | group | {group_level, exact | integer()}
        | inclusive_end | reduce | include_docs | conflicts
        | {list, binary()}
        | {keys, list(binary())}.
    
    -type view_options() :: list(view_option()).
    
    old versions functions of couchbeam_view have been renamed and marked deprecated:
    
    fetch->fetch1, fold -> fold1, count -> count1, first -> first1,
    foreach->foreach1
    
    ALso couchbeam:view is now depreacted and renamed to couchbeam:view1
    (the same for couchbeam:all_docs that have been renamed
    couchbeam:all_docs/1).
    benoitc committed Jul 5, 2011
  3. @benoitc

    use 0.7 version in user agent.

    benoitc committed Jul 4, 2011
  4. @benoitc

    We now parse the json by chunks instead of using our try catch over e…

    …json:decode_json . More efficient. While I'm here add support for changes loop monitoring in gen_changes and restart connection if it's stopped.
    
    New api is now in couchbeam_changes module:
    
    - fetch/1, fetch/2
    - stream/2, stream/3
    
    Old functions in couchbeam module has been deprecated (changes, changes_wait, changes_wait_once).
    benoitc committed Jul 4, 2011
Commits on Jul 2, 2011
  1. @benoitc
Commits on Jun 29, 2011
Commits on Jun 7, 2011
  1. @benoitc
Commits on May 4, 2011
  1. @benoitc
  2. @benoitc

    couchbeam 0.6

    benoitc committed May 4, 2011
  3. @b3no @benoitc

    use ejson NIF module to speed encoding/decoding json and remove mochiweb

    dependency, it was mostly used for json. We still borrow some function
    from mochiweb but theyare now in couchbeam_util.
    
    reapply ejson patch now that compatibility with RB013 is fixed upstream.
    Update rebar to use these changes.
    b3no committed with benoitc Apr 8, 2011
  4. @benoitc

    fix distclean target.

    benoitc committed May 4, 2011
  5. @benoitc

    update rebar bin

    benoitc committed May 4, 2011
  6. @benoitc

    use stable mochiweb

    benoitc committed May 4, 2011
  7. @benoitc

    Revert "use ejson NIF module to speed encoding/decoding json and remo…

    …ve mochiweb"
    
    This reverts commit 42b5e59.
    
    Needed to keep RB013 support. This patch will be reintroduced in next
    release after freezing current version. Next version of couchbeam will
    only be compatible with erlang R13B04.
    benoitc committed May 4, 2011
Commits on Apr 27, 2011
  1. @benoitc

    add empty_on_delete option to delete_doc and delete_docs functions , …

    …if you want to make sure docs are emptied
    
    on delete,  use the option empty_on_delete,  true} or pass a doc with just _id and _rev members
    benoitc committed Apr 27, 2011
  2. @benoitc

    remove useless log info.

    benoitc committed Apr 27, 2011
  3. @benoitc
Commits on Apr 9, 2011
  1. @b3no

    bump.

    b3no committed Apr 9, 2011
Commits on Apr 8, 2011
  1. @b3no

    add lookup_doc_rev/2,3 for fast fetching of a document's current revi…

    …sion
    James Aimonetti committed with b3no Mar 8, 2011
  2. @b3no

    use lists:keyfind and emulate proplists:get_value quirks

    James Aimonetti committed with b3no Mar 8, 2011
Something went wrong with that request. Please try again.