sofa 0.4.0
CRAN release: 2020-06-26
NEW FEATURES
- new function
doc_upsert(): updates an existing document or creates it if it doesn’t yet exist (#69) work by @critichu
CouchDB v3 related changes
- made sure sofa works with v3; all examples/tests updated to use username/password (#73)
- new function
db_bulk_get()for the/{db}/_bulk_getroute (#73) - fixed
design_search_many(): in couch v2.2 and greater there’s a new route/{db}/_design/{ddoc}/_view/{view}/queries, which is used in this fxn now instead of using the/{db}/_design/{ddoc}/_view/{view}route (#75) - Cushion class gains new method
$version()to get the CouchDB version you’re using as a numeric (to enable progammatic couch version checking) -
db_query()changes: some new parameters added:r,bookmark,update,stable,stale, andexecution_stats(#74)
DEFUNCT
-
attach_get()is now defunct, usedoc_attach_get()(#76)
MINOR IMPROVEMENTS
- added more tests (#61)
-
design_search()now allows more possible values for start and end keys:startkey_docid,start_key_doc_id,startkey,start_key,endkey_docid,end_key_doc_id,endkey,end_key(#62) - add title to vignettes (#71)
- for
docs_create()internally support using user’s setting for the R optiondigitsto pass on tojsonlite::toJSONto control number of digits after decimal place (#66)
sofa 0.3.0
CRAN release: 2018-01-03
NEW FEATURES
- Gains new functions
db_index,db_index_create, anddb_index_deletefor getting an index, creating one, and deleting one - Gains function
design_search_manyto do many queries at once in aPOSTrequest (#56) -
design_searchreworked to allow user to do aGETrequest orPOSTrequest depending on if they useparamsparameter orbodyparameter - many parameters removed in the function definition, and are now to be passed toparamsorbody(#56) -
db_alldocsgains new parameterdiskto optionally write data to disk instead of into the R session - should help when data is very large (if disk is used fxn returns a file path) (#64)
BUG FIXES
- Fix to docs for
design_search(#57) thanks @michellymenezes - Fix to
db_queryto make a single field passed tofieldsparameter work (#63) thanks @gtumuluri - Fix error in
doc_attach_get(#58) thanks @gtumuluri
