Package: mongo 0.9-5
mongo: Higher level interface to Mongo database
This is a wrapper for the jsonlite and mongolite packages which offers both an R6 object for managing the connection as well as some mechanisms for saving and restoring S4 objects to a Mongo database.
Authors:
mongo_0.9-5.tar.gz
mongo_0.9-5.zip(r-4.7)mongo_0.9-5.zip(r-4.6)mongo_0.9-5.zip(r-4.5)
mongo_0.9-5.tgz(r-4.6-any)mongo_0.9-5.tgz(r-4.5-any)
mongo_0.9-5.tar.gz(r-4.7-any)mongo_0.9-5.tar.gz(r-4.6-any)
mongo_0.9-5.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
mongo/json (API)
| # Install 'mongo' in R: |
| install.packages('mongo', repos = c('https://ralmond.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ralmond/mongo/issues
Last updated from:12736deb3b. Checks:7 ERROR, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | ERROR | 152 | ||
| source / vignettes | OK | 277 | ||
| linux-release-x86_64 | ERROR | 157 | ||
| macos-release-arm64 | ERROR | 89 | ||
| macos-oldrel-arm64 | ERROR | 118 | ||
| windows-devel | ERROR | 135 | ||
| windows-release | ERROR | 90 | ||
| windows-oldrel | ERROR | 85 | ||
| wasm-release | OK | 123 |
Exports:as.jlistas.jsonbuildJQtermbuildJQuerybuildObjectcodeClassdecodeClassfake_mongogetManyRecsgetOneReciteratorload_examplem_idm_id<-makeDBurimdbAggregatemdbAvailablemdbCountmdbDisconnectmdbDistinctmdbDropmdbExportmdbFindmdbFindLmdbImportmdbIndexmdbInfomdbInsertmdbIteratemdbMapreducemdbRemovemdbRenamemdbReplacemdbRunmdbUpdatemdbUpsertMongoDBMongoRecparse.jlistparse.jsonparseDataparsePOSIXparseSimpleDatasaveRecshowCollectionsshowDatabasesunboxerunparseDataununboxer
Dependencies:askpassformatRfutile.loggerfutile.optionsjsonlitelambda.rmimemongoliteopensslsys
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Higher level interface to Mongo database | mongo-package mongo |
| Converts S4 objects to JSON representation. | as.jlist as.jlist,ANY,list-method as.jlist,MongoRec,list-method as.json as.json,ANY-method as.json,MongoRec-method |
| Build a single query function. | buildJQterm |
| Transforms a query into JQuery JSON. | buildJQuery |
| Adds/removes package information to class descriptions | codeClass decodeClass |
| A simulated 'MongoDB' object for testing | fake_mongo fake_mongo-class mdbAggregate,fake_mongo-method mdbAvailable,fake_mongo-method mdbCount,fake_mongo-method mdbDisconnect,fake_mongo-method mdbDistinct,fake_mongo-method mdbDrop,fake_mongo-method mdbExport,fake_mongo-method mdbFind,fake_mongo-method mdbImport,fake_mongo-method mdbIndex,fake_mongo-method mdbInfo,fake_mongo-method mdbInsert,fake_mongo-method mdbIterate,fake_mongo-method mdbMapreduce,fake_mongo-method mdbRemove,fake_mongo-method mdbRename,fake_mongo-method mdbReplace,fake_mongo-method mdbRun,fake_mongo-method mdbUpdate,fake_mongo-method mdbUpsert,fake_mongo-method showCollections,fake_mongo-method showDatabases,fake_mongo-method |
| Fetches Messages from a Mongo databas | getManyRecs getOneRec |
| An object which iterates over a collection | iterator iterator-class |
| List representation of a document. | jlist |
| Class which supports the mdbCRUD methods. | CRUD JSONDB-class mdbCRUD |
| Load example Event class | load_example |
| Accessor for the Mongo id element of a record. | m_id m_id,MongoRec-method m_id<- m_id<-,MongoRec-method |
| Creates the URI needed to connect to a mongo database. | makeDBuri |
| Execute Aggregration Pipeline | mdbAggregate mdbAggregate,mongo-method mdbAggregate,MongoDB-method |
| Is the collection available for writing. | mdbAvailable mdbAvailable,mongo-method mdbAvailable,MongoDB-method |
| Counts the number of records matching Query. | mdbCount mdbCount,mongo-method mdbCount,MongoDB-method |
| Disconnects connection to database. | mdbDisconnect mdbDisconnect,mongo-method mdbDisconnect,MongoDB-method |
| Find the distinct values of a particular field | mdbDistinct mdbDistinct,mongo-method mdbDistinct,MongoDB-method |
| Drops the database collection | mdbDrop mdbDrop,mongo-method mdbDrop,MongoDB-method |
| Exports/imports data from external JSON or BSON file | mdbExport mdbExport,mongo-method mdbExport,MongoDB-method mdbImport mdbImport,mongo-method mdbImport,MongoDB-method |
| Finds records which match the query and returns as data frame | mdbFind mdbFind,mongo-method mdbFind,MongoDB-method |
| Build/remove an index for the collection. | mdbIndex mdbIndex,mongo-method mdbIndex,MongoDB-method |
| Get Information about the collection | mdbInfo mdbInfo,mongo-method mdbInfo,MongoDB-method |
| Insert a new record into a collection | mdbInsert mdbInsert,mongo-method mdbInsert,MongoDB-method |
| Returns documents as lists (jlists) from the database. | mdbFindL mdbFindL,JSONDB-method mdbIterate mdbIterate,mongo-method mdbIterate,MongoDB-method |
| Applies a summary operation to a collection | mdbMapreduce mdbMapreduce,mongo-method mdbMapreduce,MongoDB-method |
| Remove selected objects from collection | mdbRemove mdbRemove,mongo-method mdbRemove,MongoDB-method |
| Renames collection or moves it to a new database | mdbRename mdbRename,mongo-method mdbRename,MongoDB-method |
| Replace a document with a new document | mdbReplace mdbReplace,mongo-method mdbReplace,MongoDB-method mdbUpsert mdbUpsert,JSONDB-method |
| Runs a Mongo command on the collection | mdbRun mdbRun,mongo-method mdbRun,MongoDB-method |
| Modify document(s) in a collection | mdbUpdate mdbUpdate,mongo-method mdbUpdate,MongoDB-method |
| MongoDB - Reference class wrapping a connection to a Mongo database collection. | MongoDB MongoDB-class |
| Class "MongoRec". | MongoRec MongoRec-class |
| Construct an S4 object from a list of its slot values. | buildObject parse.jlist parse.jlist,ANY,list-method parse.jlist,MongoRec,list-method parse.json |
| Prepare R data for storage or restore R data from jlist #' The 'parseData' function is a helper function for 'parse.jlist()' methods, and 'unparseData' for 'as.jlist()', which represents complex objects as JSON. | parseData unparseData |
| Convert Mongo dates to POSIX | parsePOSIX |
| parseSimpleData | parseSimpleData |
| Saves a MongoRec object to a Mongo database | saveRec |
| Shows collections in the current database. | showCollections showCollections,mongo-method showCollections,MongoDB-method showCollections,NULL-method |
| Lists Databases | showDatabases showDatabases,MongoDB-method showDatabases,NULL-method |
| Marks scalar objects to be preserved when converting to JSON | unboxer ununboxer |
