cqlc

command module
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

README

cqlc

Build Status

This a fork of relops/cqlc the upstream is no longer maintained.

Usage

# install the generator to $GOPATH/bin
make install
# generate table and column definition based on schema in keyspace cqlc
cqlc --instance=127.0.0.1 --keyspace=cqlc --package=foo --output=foo.go --symbols

You need to change the repo path in glide.yaml to use this fork

- package: github.com/relops/cqlc
  version: master
  repo: https://github.com/pingginp/cqlc.git

Dev

  • clone the repo to $GOPATH/src/github.com/relops/cqlc
# generate columns
make cqlc/columns.go
# e2e test
# TODO: you need to run it twice if schema changed because first time it will generate package based on schema, which won't get compiled ...
# this same as when using latex ... you do xelatex several times when there is bib ...
make travis-test
make travis-tear
# release, update cqlc/ver.go, build and zip binary for all three platforms, only mac is tested
make release

The code has two part, runtime and generator

Runtime

The main modification we have are listed below

Generator
  • generator now compiles, caused by breaking change of constant name in gocql

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cqlc generates Go code from your Cassandra schema so that you can write type safe CQL statements in Go with a natural query syntax.
cqlc generates Go code from your Cassandra schema so that you can write type safe CQL statements in Go with a natural query syntax.
e2e
g1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL