cqlc
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