cql
cql
CQL is a SQL toolkit for Crystal, inspired by Sequel for Ruby.
Installation
Add this to your application's shard.yml
:
dependencies:
cql:
github: aisrael/cql
Usage
require "cql"
Connect to a PostgreSQL database
db = DB.postgres(DATABASE_URL)
Create Table
db.create_table("foobar").column("id", "INTEGER").exec
Insert
db.insert("foobar").column("id").exec(123)
Development
TODO: Write development instructions here
Contributing
- Fork it ( https://github.com/aisrael/cql/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
- aisrael Alistair A. Israel - creator, maintainer