Skip to content

sriio/gocqlastra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gocqlastra

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

Usage

    go get github.com/sriio/gocqlastra@latest
    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.

About

Wrapped of gocql to use with DataStax Astra

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%