crom
CRystal Object Mapper
See the backends for usage.
*/!\ Work in progress, not ready for production use /!*
TODO
- [ ] Add critera to fetch data
- [ ] Add more backends ( MongoDB, Postgres, ... )
Installation
Add this to your application's shard.yml
:
dependencies:
crom:
github: TechMagister/crom.cr
Backend
| Backend Feature | MySQL | Redis | |---------------------------------|-------|-------| | Insert | x | x | | Delete | x | x | | Update | x | x | | Aggregation | x | x | | Get by id | x | x | | Get all | x | x | | Delete all | x | x | | Count | x | x |
- MySQL backend, support aggregation, insert,update, delete, get by id
- Redis backend, use JSON to store the data
Contributing
- Fork it ( https://github.com/TechMagister/crom.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
- TechMagister Arnaud Fernandés - creator, maintainer