{"id":17770617,"url":"https://github.com/strypper/cassandra-crud-test","last_synced_at":"2025-07-22T02:31:52.405Z","repository":{"id":193919911,"uuid":"689735272","full_name":"Strypper/Cassandra-CRUD-Test","owner":"Strypper","description":"Test CRUD with Cassandra database","archived":false,"fork":false,"pushed_at":"2023-09-10T18:56:00.000Z","size":3356,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T19:15:54.191Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/Strypper.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}},"created_at":"2023-09-10T18:33:34.000Z","updated_at":"2023-09-11T03:02:42.000Z","dependencies_parsed_at":"2023-09-10T20:07:30.163Z","dependency_job_id":null,"html_url":"https://github.com/Strypper/Cassandra-CRUD-Test","commit_stats":null,"previous_names":["strypper/cassandratest","strypper/cassandra-crud-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Strypper/Cassandra-CRUD-Test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Strypper%2FCassandra-CRUD-Test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Strypper%2FCassandra-CRUD-Test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Strypper%2FCassandra-CRUD-Test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Strypper%2FCassandra-CRUD-Test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Strypper","download_url":"https://codeload.github.com/Strypper/Cassandra-CRUD-Test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Strypper%2FCassandra-CRUD-Test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266412318,"owners_count":23924486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-10-26T21:24:09.082Z","updated_at":"2025-07-22T02:31:52.386Z","avatar_url":"https://github.com/Strypper.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Setup\n$ ip addr show\n```\n3: eth0: \u003cBROADCAST,MULTICAST,UP,LOWER_UP\u003e mtu 1500 qdisc mq state UP group default qlen 1000\n    link/ether 00:15:5d:00:01:1a brd ff:ff:ff:ff:ff:ff\n    inet 172.20.48.1/20 brd 172.20.63.255 scope global eth0\n       valid_lft forever preferred_lft forever\n    inet6 fe80::215:5dff:fe00:11a/64 scope link\n       valid_lft forever preferred_lft forever\n```\n\n\nYou can use the `lsof` command to see which port Cassandra is listening on. Here's an example of how you can use this command:\n\n```\nsudo lsof -i -P -n | grep cassandra\n```\n\nThis command lists all open network connections and filters the output to show only the connections associated with the `cassandra` process. The output should show the port number that Cassandra is listening on.\n\nIf you don't have the `lsof` command installed, you can install it using your package manager. For example, on Ubuntu or Debian-based systems, you can use the following command to install `lsof`:\n\n```\nsudo apt-get install lsof\n```\n\nAlternatively, you can check the `native_transport_port` setting in the `cassandra.yaml` configuration file to see which port Cassandra is configured to listen on. The default value for this setting is `9042`.\n\n\n### Enter CQL mode\nThis will connect you to the default Cassandra instance running on your local machine.\n```bash\ncqlsh\n```\n\nIf Cassandra is installed on a remote server or on a non-default host and port, you can specify the host and port using the -u and -p options. For example:\n```bash\ncqlsh -u \u003cusername\u003e -p \u003cpassword\u003e \u003chostname\u003e \u003cport\u003e\n```\n\n### Create Table\n```sql\nCREATE TABLE IF NOT EXISTS test_keyspace.animal (\n    id UUID PRIMARY KEY,\n    name text,\n    bio text,\n    petcolors text,\n    sixdigitcode text,\n    gender boolean,\n    age double,\n    dateofbirth timestamp,\n    breedid text,\n    petavatarid text,\n    createdon timestamp,\n    lastupdatedon timestamp\n);\n```\n\n### Describe tables\n#### List all the tables\n```sql\ndescribe tables\n```\n#### Describe a specific table\n```sql\ndescribe table animal\n```\n\n### Insert data\n```sql\nINSERT INTO test_keyspace.animal (id, age, bio, breedid, createdon, dateofbirth, gender, lastupdatedon, name, petavatarid, petcolors, sixdigitcode)\nVALUES ('1', 3.5, 'Friendly dog', 'breed123', '2023-09-09T12:00:00Z', '2019-01-15T00:00:00Z', true, '2023-09-09T12:00:00Z', 'Fido', 'avatar123', 'brown,white', '123456');\n\nINSERT INTO test_keyspace.animal (id, age, bio, breedid, createdon, dateofbirth, gender, lastupdatedon, name, petavatarid, petcolors, sixdigitcode)\nVALUES ('2', 2.0, 'Playful cat', 'breed456', '2023-09-09T14:00:00Z', '2020-03-20T00:00:00Z', false, '2023-09-09T14:00:00Z', 'Whiskers', 'avatar789', 'gray', '987654');\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrypper%2Fcassandra-crud-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrypper%2Fcassandra-crud-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrypper%2Fcassandra-crud-test/lists"}