bson.cr
bson
LibBSON wrapper for Crystal
Installation
-
Add the dependency to your
shard.yml
:dependencies: bson: github: washu/bson.cr
-
Run
shards install
Usage
require "bson"
example creation of a bson document
query = [
{"$match" => {"status" => "A"}},
{"$group" => {"_id" => "$cust_id", "total" => {"$sum" => "$amount"}}}]
bson_query = query.to_bson
.... you now have a valid bson object to use.
Development
Contributing
- Fork it (https://github.com/washu/bson.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Sal Scotto - creator and maintainer
Repository
bson.cr
Owner
Statistic
- 2
- 0
- 0
- 0
- 0
- over 4 years ago
- October 8, 2019
License
MIT License
Links
Synced at
Sun, 24 Nov 2024 15:24:23 GMT
Languages