Golang CQL Cassandra Driver conforming to the built-in database/sql interface
This is a database/sql interface wrapper for https://github.com/gocql/gocql
go get github.com/MichaelS11/go-cql-driver
A simple SQL select example can be found on the godoc
https://godoc.org/github.com/MichaelS11/go-cql-driver#example-package--SqlSelect
When done with rows from QueryContext or Query, make sure to check errors from Close and Err
err = rows.Close()
if err != nil {
fmt.Println(err)
return
}
cancel()
err = rows.Err()
if err != nil {
fmt.Println(err)
return
}