{"id":32564068,"url":"https://github.com/jhhtaylor/cassandra-with-go","last_synced_at":"2026-04-30T12:34:29.072Z","repository":{"id":191684595,"uuid":"685175428","full_name":"jhhtaylor/cassandra-with-go","owner":"jhhtaylor","description":"Demo application in Go interfacing with local Cassandra. Showcases interaction with the 'demo' keyspace, handling user data insertion and retrieval in the 'users' table.","archived":false,"fork":false,"pushed_at":"2023-08-30T17:20:58.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-30T12:34:11.695Z","etag":null,"topics":["cassandra","database","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhhtaylor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-30T17:07:54.000Z","updated_at":"2023-08-30T19:10:23.000Z","dependencies_parsed_at":"2023-08-31T05:39:21.872Z","dependency_job_id":null,"html_url":"https://github.com/jhhtaylor/cassandra-with-go","commit_stats":null,"previous_names":["jhhtaylor/cassandra-with-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jhhtaylor/cassandra-with-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhhtaylor%2Fcassandra-with-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhhtaylor%2Fcassandra-with-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhhtaylor%2Fcassandra-with-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhhtaylor%2Fcassandra-with-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhhtaylor","download_url":"https://codeload.github.com/jhhtaylor/cassandra-with-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhhtaylor%2Fcassandra-with-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32465009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cassandra","database","go"],"created_at":"2025-10-29T03:54:39.717Z","updated_at":"2026-04-30T12:34:29.051Z","avatar_url":"https://github.com/jhhtaylor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cassandra-with-go\n\nIn `cassandra-with-go/` directory\n\n### **Step 1: Set up Cassandra**\n\n1.1 **Install Cassandra**:\nIf you're using macOS, the easiest way is with Homebrew:\n\n```bash\nbrew install cassandra\n```\n\n1.2 **Start Cassandra**:\n\n```bash\ncassandra -f\n```\n\n1.3 **Cassandra CQL Shell**:\nYou can interact with Cassandra using the CQL (Cassandra Query Language) shell. To start it, just type:\n\n```bash\ncqlsh\n```\n\n### **Step 2: Create a Sample Database**\n\nUsing the CQL shell, let's create a simple keyspace and table:\n\n```\ncqlCopy code\nCREATE KEYSPACE demo WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };\n\nUSE demo;\n\nCREATE TABLE users (\n    id UUID PRIMARY KEY,\n    name TEXT,\n    age INT\n);\n\n```\n\n### **Step 3: Set Up Go and Cassandra Go Driver**\n\n3.1 **Install Go Driver**:\nYou'll need the Go driver for Cassandra. To get it, run:\n\n```bash\ngo get github.com/gocql/gocql\n```\n\n---\n\n### **Step 4: Run Go Program**\n\n```bash\ngo run main.go\n```\nIf everything goes as planned, the output will indicate that a user \"Alice\" with age 30 has been added and then retrieved from the Cassandra users table.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhhtaylor%2Fcassandra-with-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhhtaylor%2Fcassandra-with-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhhtaylor%2Fcassandra-with-go/lists"}