{"repo":"elbywan/bson.cr","free":true,"listed":false,"github":"https://github.com/elbywan/bson.cr","clone":"git clone https://github.com/elbywan/bson.cr.git","description":"A pure Crystal Implementation of the BSON Specification. 🐃","language":"Crystal","stars":20,"topics":["bson","mongodb"],"license":"MIT","category":"data-pipelines","readme_excerpt":"bson.cr A pure Crystal implementation of the BSON specification . Reliability This library passes the official corpus tests located in the mongodb/specifications repository. A few minor modifications have been made to the tests to comply with Crystal specifics. Installation 1. Add the dependency to your shard.yml : 2. Run shards install API Full API documentation is hosted here. Usage Constructors Append and fetch values Iterate Conversions JSON Serialization Validating ObjectIds You can validate that a provided string is a valid MongoDB ObjectId before instantiating it with .new() with: Decimal128 The Decimal128 code has been hastily copied from the bson-ruby library. It works, but performance is low because it uses an intermediate String representation. Contributing 1. Fork it ( ) 2. Create your feature branch ( git checkout -b my-new-feature ) 3. Commit your changes ( git commit -am 'Add some feature' ) 4. Push to the branch ( git push origin my-new-feature ) 5. Create a new Pull Request Contributors - elbywan - creator and maintainer Credit - Icon made by Vitaly Gorbachev from www.flaticon.com.","default_branch":null,"files":null,"tree":[],"storefront":"/r/elbywan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/elbywan/bson.cr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}