bson
Version, currently master branch1 version
- master branchlatestFeb 24, 2020
github.com/washu/bson.cr
LibBSON wrapper fro Crystal
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
bson:
github: washu/bson.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.30.1- License
- MIT
- Authors
- Sal Scotto, Jerome Gravel-Niquet
Dependencies
This version declares no dependencies.
README
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
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Feb 24, 2020
- Crystal
0.30.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/washu/bson.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1