cql

A SQL toolkit for Crystal, inspired by Java's jOOQ and Ruby's Sequel gem
0.3 released
aisrael/cql
5 1 3
Alistair A. Israel

Build status

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

  1. Fork it ( https://github.com/aisrael/cql/fork )
  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

  • aisrael Alistair A. Israel - creator, maintainer
cql:
  github: aisrael/cql
  version: ~> 0.3
License MIT
Crystal 0.25.1

Authors

Dependencies 1

  • logging 0.1
    {'github' => 'aisrael/logging.cr', 'version' => 0.1}

Development Dependencies 1

  • pg 0.15.0
    {'github' => 'will/crystal-pg', 'version' => '0.15.0'}

Dependents 1

Last synced .
search fire star recently