{"id":15056760,"url":"https://github.com/pchalamet/cassandra-sharp","last_synced_at":"2025-10-24T01:40:00.493Z","repository":{"id":3481871,"uuid":"4537353","full_name":"pchalamet/cassandra-sharp","owner":"pchalamet","description":"high performance .NET driver for Apache Cassandra","archived":false,"fork":false,"pushed_at":"2022-02-03T07:29:55.000Z","size":13224,"stargazers_count":112,"open_issues_count":1,"forks_count":41,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-29T04:12:01.915Z","etag":null,"topics":["async","cassandra","dotnet","driver"],"latest_commit_sha":null,"homepage":"","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/pchalamet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-03T13:15:19.000Z","updated_at":"2025-02-14T15:50:29.000Z","dependencies_parsed_at":"2022-09-04T03:22:59.503Z","dependency_job_id":null,"html_url":"https://github.com/pchalamet/cassandra-sharp","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchalamet%2Fcassandra-sharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchalamet%2Fcassandra-sharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchalamet%2Fcassandra-sharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pchalamet%2Fcassandra-sharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pchalamet","download_url":"https://codeload.github.com/pchalamet/cassandra-sharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289429,"owners_count":20914464,"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","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":["async","cassandra","dotnet","driver"],"created_at":"2024-09-24T21:56:09.748Z","updated_at":"2025-10-24T01:40:00.432Z","avatar_url":"https://github.com/pchalamet.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"NOTE\n====\nI've stopped working on this driver. For better support, please gear towards the official [.net Cassandra driver](https://github.com/datastax/csharp-driver).\n\ncassandra-sharp - high performance .NET driver for Apache Cassandra\n===================================================================\n![build status](https://ci.appveyor.com/api/projects/status/github/pchalamet/cassandra-sharp?branch=master)\n\nThe philosophy of cassandra-sharp is to be really simple and fast: no Linq provider, no complex API. Just CQL, simple object mapping and great performance :)\n\nWith version 4, cassandra-sharp is only speaking native protocol 4 - basically, this means you are required to use Cassandra 3.\n\ncassandra-sharp supports async operations exposed as Rx subscriptions or TPL tasks. Efficient memory usage can be achieve using the push model of Rx.\n\nA command line tool is also available (cqlplus) to access a Cassandra cluster. It's also a great tool to understand what's happening under the cover.\n\nGetting binaries\n================\nBinaries are available through NuGet : http://www.nuget.org/packages/cassandra-sharp\n\nCopyright \u0026 License\n===================\n\tcassandra-sharp - high performance .NET driver for Apache Cassandra\n\tCopyright (c) 2011-2017 Pierre Chalamet\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\t \n\thttp://www.apache.org/licenses/LICENSE-2.0\n\t \n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n\nFeatures\n========\n* async operations (TPL tasks / Rx subscriptions)\n* Rx interface (IObservable / IObserver) for result streaming\n* TPL Task for future operations\n* Linq friendly\n* extensible rowset mapping (poco and map provided out of the box)\n* blazing fast object marshaler (dynamic gen'ed code)\n* robust connection handling (connection recovery supported)\n* ability to understand performance issues (client and server side)\n* multiple extension points\n* command line tool (cqlplus)\n* .NET 4.0+ support (Microsoft .NET / Mono)\n\nHow to build\n============\nTo build cassandra-sharp, load cassandra-sharp.sln in Visual Studio 2017.\nTo build from command line and to regenerate thrift proxy, use Build.cmd.\n\nSample configuration\n====================\n```xml\n\u003cconfigSections\u003e\n\t\u003csection name=\"CassandraSharp\" type=\"CassandraSharp.SectionHandler, CassandraSharp.Interfaces\" /\u003e\n\u003c/configSections\u003e\n\n\u003cCassandraSharp\u003e\n\t\u003cCluster name=\"TestCassandra\"\u003e\n\t\t\u003cEndpoints\u003e\n\t\t\t\u003cServer\u003elocalhost\u003c/Server\u003e\n\t\t\u003c/Endpoints\u003e\n\t\u003c/Cluster\u003e\n\u003c/CassandraSharp\u003e\n```\nSample client\n=============\n```c#\npublic class SchemaKeyspaces\n{\n    public string KeyspaceName { get; set; }\n    public bool DurableWrites { get; set; }\n    public Dictionary\u003cstring, string\u003e Replication { get; set; }\n}\n\t\npublic static class Sample\n{\n    private static void DisplayKeyspace(SchemaKeyspaces ks)\n    {\n        Console.WriteLine(\"KeyspaceName={0} DurableWrites={1} Class={2} ReplicationFactor={3}\",\n                          ks.KeyspaceName,\n                          ks.DurableWrites,\n                          ks.Replication[\"class\"],\n                          ks.Replication[\"replication_factor\"]);\n    }\n\t\n    public static async Task QueryKeyspaces()\n    {\n        XmlConfigurator.Configure();\n        using (ICluster cluster = ClusterManager.GetCluster(\"TestCassandra\"))\n        {\n            var cmd = cluster.CreatePocoCommand();\n            const string cqlKeyspaces = \"SELECT * from system_schema.keyspaces\";\n\n            // async operation with streaming\n            cmd.WithConsistencyLevel(ConsistencyLevel.ONE)\n               .Execute\u003cSchemaKeyspaces\u003e(cqlKeyspaces)\n               .Subscribe(DisplayKeyspace);\n\n            // future\n            var kss = await cmd.Execute\u003cSchemaKeyspaces\u003e(cqlKeyspaces).AsFuture();\n            foreach (var ks in kss)\n                DisplayKeyspace(ks);\n        }\n\n        ClusterManager.Shutdown();\n    }\n}\n```\nThanks\n======\nJetBrains provided a free licence of Resharper for the cassandra-sharp project. Big thanks for the awesome product.\n![ReSharper](http://www.jetbrains.com/resharper/features/rs/rs1/rs468x60_violet.gif)\n\nThis projects also relies on the following third parties:\n* MSBuild Community Tasks Project (http://msbuildtasks.tigris.org/) released under BSD License\n* Moq (http://code.google.com/p/moq/) released under New BSD License\n* NUnit (http://www.nunit.org/) released NUnit license\n* NuGet (http://nuget.org/) released under Apache License 2.0\n* Command Line Argument Parser Library (http://commandlinearguments.codeplex.com/) released under Microsoft Public License (Ms-PL)\n* Tiny Parser Generator (http://www.codeproject.com/Articles/28294/a-Tiny-Parser-Generator-v1-2) released under Code Project Open License (CPOL)\n\nThanks to all contributors for ideas, bug fix and feedbacks!\n\n[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/8727d7a4294e4c1821f74094438ca26d \"githalytics.com\")](http://githalytics.com/pchalamet/cassandra-sharp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpchalamet%2Fcassandra-sharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpchalamet%2Fcassandra-sharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpchalamet%2Fcassandra-sharp/lists"}