{"id":17983029,"url":"https://github.com/minghsu0107/cassandra-golang-example","last_synced_at":"2026-04-19T03:02:11.813Z","repository":{"id":144335955,"uuid":"353223168","full_name":"minghsu0107/cassandra-golang-example","owner":"minghsu0107","description":"This repository shows basic Cassandra CRUD operations using Golang.","archived":false,"fork":false,"pushed_at":"2022-07-23T08:35:47.000Z","size":3487,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T10:05:58.060Z","etag":null,"topics":["cassandra","cql","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/minghsu0107.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-31T04:18:46.000Z","updated_at":"2024-11-07T02:59:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ff3ade9-577c-4d04-85d6-7e0ef8c6e542","html_url":"https://github.com/minghsu0107/cassandra-golang-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/minghsu0107/cassandra-golang-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minghsu0107%2Fcassandra-golang-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minghsu0107%2Fcassandra-golang-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minghsu0107%2Fcassandra-golang-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minghsu0107%2Fcassandra-golang-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minghsu0107","download_url":"https://codeload.github.com/minghsu0107/cassandra-golang-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minghsu0107%2Fcassandra-golang-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31992822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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","cql","golang"],"created_at":"2024-10-29T18:15:53.626Z","updated_at":"2026-04-19T03:02:11.762Z","avatar_url":"https://github.com/minghsu0107.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cassandra Golang Example\nThis repository shows basic Cassandra CRUD operations using Golang.\n## Overview\nWe will create a keyspace according to the `scripts/cassandra.cql`:\n```\nCREATE KEYSPACE roster WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 1};\nUSE roster;\nCREATE TABLE employees (\n    id UUID,\n    firstname varchar,\n    lastname varchar,\n    age int,\n    PRIMARY KEY(id)\n);\nCREATE INDEX ON employees(age);\n\nCREATE TABLE messages (\n    channel UUID,\n    msg_id int,\n    username varchar,\n    content text,\n    PRIMARY KEY((channel), msg_id, username)\n) WITH CLUSTERING ORDER BY (msg_id DESC);\n```\nThe keyspace will be created in Cassandra on startup. Note that we have created an index on `age` field so that we could query by `age` besides primary key.\n## Usage\n```bash\ndocker-compose up\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminghsu0107%2Fcassandra-golang-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminghsu0107%2Fcassandra-golang-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminghsu0107%2Fcassandra-golang-example/lists"}