Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Latest commit

 

History

History
18 lines (15 loc) · 844 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 844 Bytes

gocqlastra

This is a wrapped of gocql to use with DataStax Astra. For more information, please go to see gocql document.

Usage

    cluster, _ := gocqlastra.NewCluster("<<PATH/TO/>>secure-connect.zip")
    cluster.Authenticator = &gocql.PasswordAuthenticator{
        Username: "<<CLIENT ID>>",
        Password: "<<CLIENT SECRET>>",
    }
    session, _ := cluster.CreateSession()
    defer session.Close()

Credits

I have taken most of the code logic from the cassandra-driver project written in Javascript and rewrite it using Golang. And this is a wrapped of gocql. I will give credit to gocql. You don't need to use my package, but it can save your development time.