{"id":15056719,"url":"https://github.com/whatyouhide/xandra","last_synced_at":"2026-02-13T01:12:05.351Z","repository":{"id":37906416,"uuid":"59223100","full_name":"whatyouhide/xandra","owner":"whatyouhide","description":"Fast, simple, and robust Cassandra/ScyllaDB driver for Elixir.","archived":false,"fork":false,"pushed_at":"2025-06-24T08:15:24.000Z","size":1053,"stargazers_count":429,"open_issues_count":7,"forks_count":59,"subscribers_count":13,"default_branch":"main","last_synced_at":"2026-01-14T07:34:23.060Z","etag":null,"topics":["cassandra","elixir","scylla"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whatyouhide.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"whatyouhide"}},"created_at":"2016-05-19T16:18:30.000Z","updated_at":"2025-12-09T04:32:16.000Z","dependencies_parsed_at":"2023-10-16T19:26:15.609Z","dependency_job_id":"f6003d3b-7d6b-4cd8-8b0d-bf981ff0e53e","html_url":"https://github.com/whatyouhide/xandra","commit_stats":{"total_commits":562,"total_committers":20,"mean_commits":28.1,"dds":0.3167259786476868,"last_synced_commit":"fc1bbdd7f7283562721076b8f625eb230127e402"},"previous_names":["lexhide/xandra"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/whatyouhide/xandra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatyouhide%2Fxandra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatyouhide%2Fxandra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatyouhide%2Fxandra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatyouhide%2Fxandra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whatyouhide","download_url":"https://codeload.github.com/whatyouhide/xandra/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whatyouhide%2Fxandra/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29391251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T00:53:09.511Z","status":"ssl_error","status_checked_at":"2026-02-13T00:53:09.126Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","elixir","scylla"],"created_at":"2024-09-24T21:55:40.810Z","updated_at":"2026-02-13T01:12:05.329Z","avatar_url":"https://github.com/whatyouhide.png","language":"Elixir","funding_links":["https://github.com/sponsors/whatyouhide"],"categories":["Drivers and Libraries","Elixir"],"sub_categories":["Elixir"],"readme":"# Xandra\n\n[![hex.pm badge](https://img.shields.io/badge/Package%20on%20hex.pm-informational)](https://hex.pm/packages/xandra)\n[![Documentation badge](https://img.shields.io/badge/Documentation-ff69b4)][documentation]\n[![CI](https://github.com/lexhide/xandra/actions/workflows/main.yml/badge.svg)](https://github.com/lexhide/xandra/actions/workflows/main.yml)\n[![Hex.pm](https://img.shields.io/hexpm/v/xandra.svg)](https://hex.pm/packages/xandra)\n\n\u003e Fast and robust Cassandra driver for Elixir.\n\n![Cover image](http://i.imgur.com/qtbgj00.jpg)\n\nXandra is a [Cassandra][cassandra] driver built natively in Elixir and focused\non speed, simplicity, and robustness. This driver works exclusively with the\nCassandra Query Language v3 (CQL3) and native protocol *v3*, *v4*, and *v5*.\n\n## Features\n\n  * 🎱 Connection pooling with automatic reconnections\n  * 🌯 Prepared queries (with local cache of prepared queries on a\n    per-connection basis) and batch queries\n  * 📃 Page streaming\n  * 🗜️ LZ4 compression\n  * 👩‍👩‍👧‍👧 Clustering with support for autodiscovery of nodes in the cluster\n  * 🔁 Customizable retry strategies for failed queries\n  * 👩‍💻 User-defined types\n  * 🔑 Authentication\n  * 🔐 SSL encryption\n\nSee [the documentation][documentation] for detailed explanation of how the\nsupported features work.\n\n## Installation\n\nAdd the `:xandra` dependency to your `mix.exs` file:\n\n```elixir\ndefp deps do\n  [\n    {:xandra, \"~\u003e 0.19\"}\n  ]\nend\n```\n\nThen, run `mix deps.get` in your shell to fetch the new dependency.\n\n## Overview\n\nThe documentation is available [on HexDocs][documentation].\n\nConnections or pool of connections can be started with `Xandra.start_link/1`:\n\n```elixir\n{:ok, conn} = Xandra.start_link(nodes: [\"127.0.0.1:9042\"])\n```\n\nThis connection can be used to perform all operations against the Cassandra\nserver. Executing simple queries looks like this:\n\n```elixir\nstatement = \"INSERT INTO users (name, postcode) VALUES ('Priam', 67100)\"\n{:ok, %Xandra.Void{}} = Xandra.execute(conn, statement, _params = [])\n```\n\nPreparing and executing a query:\n\n```elixir\nwith {:ok, prepared} \u003c- Xandra.prepare(conn, \"SELECT * FROM users WHERE name = ?\"),\n     {:ok, %Xandra.Page{}} \u003c- Xandra.execute(conn, prepared, [_name = \"Priam\"]),\n     do: Enum.to_list(page)\n```\n\nXandra supports streaming pages:\n\n```elixir\nprepared = Xandra.prepare!(conn, \"SELECT * FROM subscriptions WHERE topic = :topic\")\npage_stream = Xandra.stream_pages!(conn, prepared, _params = [], page_size: 1_000)\n\n# This is going to execute the prepared query every time a new page is needed:\npage_stream\n|\u003e Enum.take(10)\n|\u003e Enum.each(fn page -\u003e IO.puts(\"Got a bunch of rows: #{inspect(Enum.to_list(page))}\") end)\n```\n\n## Scylla support\n\nXandra supports [Scylla][scylladb] (version `2.x` to `5.x`) without the need to do anything in particular.\n\n## License\n\nXandra is released under the ISC license, see the [LICENSE](LICENSE) file.\n\n[documentation]: https://hexdocs.pm/xandra\n[cassandra]: http://cassandra.apache.org\n[scylladb]: https://www.scylladb.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhatyouhide%2Fxandra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhatyouhide%2Fxandra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhatyouhide%2Fxandra/lists"}