https://github.com/terrextech/go-cassandrautils
GoCQL abstraction allowing convenient interaction with Cassandra.
https://github.com/terrextech/go-cassandrautils
cassandra gocql golang
Last synced: about 1 month ago
JSON representation
GoCQL abstraction allowing convenient interaction with Cassandra.
- Host: GitHub
- URL: https://github.com/terrextech/go-cassandrautils
- Owner: TerrexTech
- License: mit
- Created: 2018-08-19T00:44:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-09T04:40:52.000Z (almost 8 years ago)
- Last Synced: 2025-07-19T18:46:03.831Z (11 months ago)
- Topics: cassandra, gocql, golang
- Language: Go
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Go Cassandra-Utils
---
This package helps in bootstrapping Cassandra, including tasks such as creating database-sessions, keyspaces, and tables.
**[Go Docs][0].**
Check example usage here: [examples/example.go][1]
More examples can be found in [test-files][2].
#### 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][3] ensures that our library and gocql together are working as intended.
Better suggestions with proper reasoning are welcomed.
[0]: https://godoc.org/github.com/TerrexTech/go-cassandrautils/cassandra
[1]: https://github.com/TerrexTech/go-cassandrautils/blob/master/examples/example.go
[2]: https://github.com/TerrexTech/go-cassandrautils/tree/master/cassandra
[3]: https://github.com/TerrexTech/go-cassandrautils/tree/master/test