johnnywidth / cql-calculator Goto Github PK
View Code? Open in Web Editor NEWCalculating Cassandra partition size
Home Page: https://www.cqlguru.io/
License: MIT License
Calculating Cassandra partition size
Home Page: https://www.cqlguru.io/
License: MIT License
For the size required for each column, what's the unit?
Is it the number of characters, number of bytes or the size when serialized?
When pasting a query that has comments, the program fails:
$ cql-calculator -query 'create table if not exists mytable
(
value1 text, // this is line comment
value2 text, /* this is block comment*/
-- another comment
id uuid,
PRIMARY KEY( id )
);'
Enter rows count per one partition: 1
panic: parse regular columns failed. found "/", expected column name
goroutine 1 [running]:
main.main()
/Users/kieran/go/pkg/mod/github.com/johnnywidth/[email protected]/cmd/cql-calculator/main.go:38 +0x8d7
The https://www.cqlguru.io site returns the following error when you click Calculate without changing anything.
Holy guacamole!
TypeError: Load failed
Hello,
trying to compile and I have
~/tmp/cql-calculator/cmd] master ± go build
generate.go:8:2: cannot find package "github.com/johnnywidth/cql-calculator/src" in any of:
/nix/store/bg6j6r90v0mv96fq7i5iiamscwrkyby1-go-1.10.3/share/go/src/github.com/johnnywidth/cql-calculator/src (from $GOROOT)
/home/spinus/go/src/github.com/johnnywidth/cql-calculator/src (from $GOPATH)
generate.go:9:2: cannot find package "github.com/johnnywidth/cql-calculator/src/cql-parser" in any of:
/nix/store/bg6j6r90v0mv96fq7i5iiamscwrkyby1-go-1.10.3/share/go/src/github.com/johnnywidth/cql-calculator/src/cql-parser (from $GOROOT)
/home/spinus/go/src/github.com/johnnywidth/cql-calculator/src/cql-parser (from $GOPATH)
generate.go:10:2: cannot find package "gopkg.in/yaml.v2" in any of:
/nix/store/bg6j6r90v0mv96fq7i5iiamscwrkyby1-go-1.10.3/share/go/src/gopkg.in/yaml.v2 (from $GOROOT)
/home/spinus/go/src/gopkg.in/yaml.v2 (from $GOPATH)
could you please advice what I can do about that?
The installation instructions in the README no longer work.
❯ go get -u github.com/johnnywidth/cql-calculator/cmd/cql-calculator
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.