This repository was archived by the owner on Jun 10, 2021. It is now read-only.
Releases: SimonRichardson/purescript-node-mongodb
Releases · SimonRichardson/purescript-node-mongodb
0.11 updates
Updates to the latest purescript changes.
This was done by @epicallan, so many thanks!
Purescript 0.10.x
The following release is thanks to @zhangchiqing
It contains the following:
- Update to the latest purescript 0.10.x
- Removed examples in favour of tests
- Cleaned up some bugs on the way
Latest Purescript
Update to the latest Purescript thanks to @chrisdotcode
Cancelling
Improved cancellation code by removal of ffi code, which should make it much safer (less ffi code the better!)
Connect with URI
- Remove the need to use a connection info, use a string instead.
Insert and Update
- Implementation of inserting documents
- Implementation of updating documents
- Implementation mongo ($) dollar methods
- Auto decode models from find, collect and collectOne automatically
- Update the readme
- Update the documentation
Examples
This release includes a very simple find example.
Very simple example below:
Right database <- attempt $ connect $ defaultOptions { db = Just "events" }
col <- collection "events" database
cur <- find ["name" := (regex "Amazing" noFlags)] [] col
res <- collect cur
evt <- decodeEvents res
close database
PR #8
Alpha Release
Implemented the following:
- Connect to a mongo database
- Get the collection by name
- Find some documents via some BSON
- Find one document via some BSON
- Collect the possible output
This is the alpha release, there is a lot of things missing, but you're
more than welcome to fork it and submit PR.