{"id":50234,"library":"gocql-gocql","title":"gocql","description":"Package gocql implements a fast and robust Cassandra driver for the Go programming language.","status":"active","version":"1.7.0","language":"go","source_language":null,"source_url":"https://github.com/gocql/gocql","tags":["cassandra","database","nosql","driver"],"install":[{"cmd":"go get github.com/gocql/gocql","lang":"bash","label":"Install github.com/gocql/gocql"}],"dependencies":[],"imports":[{"symbol":"gocql","correct":"github.com/gocql/gocql"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/gocql/gocql\"\n)\n\nfunc main() {\n\tcluster := gocql.NewCluster(\"127.0.0.1\")\n\tsession, err := cluster.CreateSession()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer session.Close()\n\n\tvar name string\n\tif err := session.Query(\"SELECT name FROM users WHERE id = ?\", 1).Scan(&name); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Println(name)\n}","lang":"go","description":"Connects to Cassandra and queries a single row."},"warnings":[{"fix":"Set SslOptions.EnableHostVerification = true or provide a *tls.Config.","message":"SslOptions is insecure by default; EnableHostVerification must be set to true if no tls.Config is provided.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'cassandra':9,16 'databas':17 'driver':10,19 'fast':6 'go':13 'gocql':1,3 'implement':4 'languag':15 'nosql':18 'packag':2 'program':14 'robust':8","created_at":"2026-06-15T04:45:25.411033+00:00","updated_at":"2026-06-15T04:45:25.411033+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/gocql/gocql","github":"https://github.com/gocql/gocql","docs":"https://pkg.go.dev/github.com/gocql/gocql#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}