corm
Version, currently master branch1 version
- master branchlatestJan 1, 2018
github.com/gdotdesign/cr-corm
SQL Statement Builder
5 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
corm:
github: gdotdesign/cr-corm
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Szikszai Gusztáv
Dependencies
Runtime Dependencies
README
Corm
SQL Statement Builder (currently supporting PostgreSQL)
Installation
Add this to your application's shard.yml:
dependencies:
corm:
github: gdotdesign/corm
Features
TODO: Finalize feature list
Statements:
- [x] SELECT
- [x] INNER_JOIN
- [x] GROUP BY
- [x] WHERE
- [ ] INSERT
- [ ] CREATE
- [ ] DELETE
- [ ] OUTER_JOIN
- [ ] LIMIT
- [ ] ORDER BY
- [ ] ALTER TABLE
- [ ] CREATE TABLE
Functions:
- [x] MAX
- [x] MIN
- [x] COUNT
- [x] SUM
- [x] AVG
- [ ] ROUND
- [ ] DISTINCT
Helpers:
- [ ] .columns
Usage
TODO: Write more useful documentation
require "corm"
# Simple query without type casting
Corm.table("users")
.select("id", "name")
.where({ "id" => 23 })
.one
# [[23 : PG::PGValue, "Some User" : PG::PGValue ]]
# Simple query with type casting
Corm.table("users")
.select("id", "name")
.where({ "id" => 23 })
.one({Int32, String})
# {23 : Int32, "Some User" : String}
Development
There is no special development dependencies other then PostgreSQL so far.
Contributing
- Fork it ( https://github.com/gdotdesign/corm/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
- gdotdesign Szikszai Gusztáv - creator, 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
- Jan 1, 2018
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/gdotdesign/cr-corm
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1