Fast and Simple 'MongoDB' Client for R

High-performance 'MongoDB' client based on 'libmongoc' and 'jsonlite'. Includes support for aggregation, indexing, map-reduce, streaming, encryption, enterprise authentication. The online user manual provides an overview of the available methods in the package: < https://jeroen.github.io/mongolite/>.


News

1.5

  • Change default value of 'filters' to NULL for MongoDB < 3.4
  • Added a new method mongo$replace() for fixed value updates

1.4

  • Fix protect bug introduced while trying to fix rchk
  • Merge final upstream 1.9.0 release

1.3

  • Update mongo-c-driver to upstream 1.9.0
  • Switch from uptream deprecated APIs to new ones
  • Add 'filter' parameter to mongo$update() for arrayFilters
  • Expose 'stop_on_error' parameter in mongo$insert()
  • Updated mongo$update() to new APIs and return summary reply
  • Workaround #pragma lines in vendored mongo-c-driver for CRAN

1.2

  • Update mongo-c-driver to upstream 1.6.2
  • Update jsonlite requirement to 1.4 (fixes bug in reading dates)
  • Add 'date_as_char' parameter to mongo_options()

1.1

  • Update mongo-c-driver to upstream 1.6.1
  • Fix "-Wempty-translation-unit" compiler warning on OSX
  • Extract autobrew script

1.0

  • New mongo bookdown docs at https://jeroen.github.io/mongolite
  • Update mongo-c-driver to upstream 1.6.0
  • Add basic decimal 128 support (coerce to double)
  • Improve enterprise authentication for LDAP, X509 and Kerberos
  • Windows: build with SSPI instead of SASL
  • Added 'allow_invalid_hostname' parameter to ssl_options()
  • Option 'bigint_as_char' to parse int64 into string instead of double
  • New function mongo_options to get/set global options
  • Function mongo_log_level is removed (use mongo_options instead)
  • insert() now substitutes dots in key (col) names with underscores
  • Various fixes in update(), support for upsert
  • Add unit tests from 'specifications' (some tests fail in mongo-c-driver)
  • Switch to new C driver API mongoc_collection_find_with_opts()
  • Add R_registerRoutines() call to please CMD check

0.9.2

  • Upgrade mongo-c-driver to upstream 1.5.1

0.9.1

  • Add 'ssl_options()' funtion and 'options' parameter for SSL connections

0.9.0

  • Update mongo-c-driver to 1.4.1 (Still use OpenSSL on all platforms)
  • Fix configure script for new Homebrew
  • BREAKING: ObjectID fields are now returned as strings instead of raw vectors
  • Use new 'always_decimal' option in jsonlite to keep real numbers as doubles
  • Make 'mongo' objects serializable (persistent between R sessions)
  • New function 'mongo_log_level' to set debugging verbosity
  • Add 'list' and 'json' support for m$insert()
  • Add option to disable query timeout for count(), find(), aggregate()
  • Disable DBSON_EXTRA_ALIGN when UBSAN is enabled

0.8.1

  • Update mongo-c-driver to 1.3.4

0.8

  • Update mongo-c-driver to 1.3.1
  • Fix for snow leopard (no strnlen)

0.7

  • Added mongolabs example that runs with R CMD check
  • Update mongo-c-driver to 1.3.0
  • Link to OpenSSL 1.0.2d on Windows
  • Backport workaround GNU extension in mongoc-util-private.h:34
  • Link to brew openssl 1.0.2 on OSX instead of native 0.9.8

0.6

  • Update mongo-c-driver to db120a3526
  • Workaround GNU extension in mongoc-util-private.h:34
  • Fix for m$export() on windows (UTF8 related)
  • Fix for setInternet2 in R 3.3.0 on Windows

0.5

  • Update mongo-c-driver and libbson to 1.1.10
  • New method 'iterate' to retrieve records without simplification
  • POSIXt timestamps and raw vectors are inserted as native types
  • Fix for authentication to database specified in the 'url'

0.4:

  • Add support for export() and import()
  • Update mongo-c-driver and libbson to 1.1.7
  • Make 'verbose' parameter global

0.3

  • Update mongo-c-driver and libbson to 1.1.5
  • Add support for map-reduce

0.2

  • Initial release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("mongolite")

1.5 by Jeroen Ooms, 5 months ago


https://github.com/jeroen/mongolite/ (devel) https://jeroen.github.io/mongolite/ (user manual) http://mongoc.org/ (upstream)


Report a bug at https://github.com/jeroen/mongolite/issues


Browse source code at https://github.com/cran/mongolite


Authors: Jeroen Ooms [aut, cre], MongoDB, Inc [cph] (Bundled mongo-c-driver, see AUTHORS file)


Documentation:   PDF Manual  


Apache License 2.0 license


Imports jsonlite, openssl

Suggests spelling

System requirements: OpenSSL, Cyrus SASL (aka libsasl2)


Suggested by ssh.


See at CRAN