cql-http

Version, currently master branch1 version
  • master branchlatestMar 17, 2017

github.com/trendier-ai/cql-http

cql query via http

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  cql-http:
    github: trendier-ai/cql-http
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.21.1
License
MIT
Author
metacortex
Target
  • cql-http from src/cql_http.cr

Dependencies

This version declares no dependencies.

README

cql-http

use cql via http

scylladb using docker

https://hub.docker.com/r/scylladb/scylla

docker run --name scylla -p 9042:9042 scylladb/scylla

docker run --name scylla -p 9042:9042 --volume /var/lib/scylla:/var/lib/scylla scylladb/scylla

docker exec scylla ps aux

docker exec -it scylla cqlsh 172.17.0.2 -p 9042

basic cassandra query

CREATE KEYSPACE goblins WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };

CREATE TABLE goblins.sensors (
  id bigint,
  page text,
  count bigint,
  PRIMARY KEY (id, page)
);

SELECT * FROM goblins.sensors;