Skip to content

TerrexTech/go-cassandrautils

Repository files navigation

Go Cassandra-Utils


This package helps in bootstrapping Cassandra, including tasks such as creating database-sessions, keyspaces, and tables.

Go Docs. Check example usage here: examples/example.go More examples can be found in test-files.

Developer Notes


Since gocql doesn't provide interfaces to mock, this library internally works by creating wrapper-interfaces around gocql and gocqlx to allow better testing.

Here, we mostly test if things are being passed to gocql correctly, assuming that the gocql works as intended. The final integration_test ensures that our library and gocql together are working as intended.

Better suggestions with proper reasoning are welcomed.