Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
cosmetic cleanup before release
Browse files Browse the repository at this point in the history
  • Loading branch information
reuzel committed Sep 6, 2013
1 parent bf082f0 commit 0e6096e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
6 changes: 3 additions & 3 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## Version 0.15.0 - ADO.NET implementation
* CqlSharp now implements the ADO.NET interfaces (this is a breaking change!), using the System.Data.Common classes
* Some ADO.NET interfaces are implemented explicitly, such that public interfaces expose Cassandra specific info
* Parameters to prepared queries will be created based on ParameterCreationOption provided to prepare
* Introduced QueryResult property on CqlCommand to expose Cassandra result information for non-Queries
* Parameters for prepared queries will be automatically generated when no paramaters are set beforehand
* ClusterConfig replaced by CqlConnectionStringBuilder (and moved to root namespace)
* Query cancellation supported
* Query cancellation now supported
* Database can be changed from default to something else per CqlConnection when Exclusive strategy is used
* Some preparation to make ConnectionStrategy extendable like logging
* Getting and logging more info on Cassandra cluster like name, release, cqlversion, etc.
Expand Down
5 changes: 4 additions & 1 deletion CqlSharp/Logging/FastGuid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace CqlSharp.Logging
{
/// <summary>
/// Fast way to create GUIDs
/// Faster way to create GUIDs at the cost of loss of some randomness
/// </summary>
internal static class FastGuid
{
Expand All @@ -31,6 +31,9 @@ internal static class FastGuid

private static long _counter;

/// <summary>
/// Initializes the <see cref="FastGuid"/> class with the information of single Guid.
/// </summary>
static FastGuid()
{
var baseGuid = Guid.NewGuid();
Expand Down
22 changes: 18 additions & 4 deletions CqlSharpTest/LoggingTest.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
using CqlSharp.Logging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
// CqlSharp - CqlSharp.Test
// Copyright (c) 2013 Joost Reuzel
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using System;
using System.Diagnostics;
using CqlSharp.Logging;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace CqlSharp.Test
{
[TestClass]
public class LoggingTest
{

[TestMethod]
public void FastGuidIsFast()
{
Expand Down Expand Up @@ -39,4 +53,4 @@ public void FastGuidIsFast()
Assert.IsTrue(slow > fast);
}
}
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Features
* CqlSharp is an implementation of the (new) CQL Binary Protocol and therefore requires Cassandra 1.2 and up
* Query tracing is supported.
* The API implements the ADO.NET interfaces. If you are familiar with SqlConnection, SqlCommand, and SqlReader, you should be able to use CqlSharp with no difficulty.
* Query timeouts and cancellation is supported
* The API is predominately [asynchronous](http://msdn.microsoft.com/en-us/library/vstudio/hh191443.aspx), heavily relying on the System.Threading.Tasks namespace. Synchronous alternatives are available for convenience.
* Supports mapping of objects to query parameters, or query results to objects. Mapping is tunable by decorating your classes via Table and Column attributes.
* Configuration is done through connection strings. The simultaneous use of multiple Cassandra clusters is supported.
Expand All @@ -28,6 +29,7 @@ Features
* Load balanced connection management: you can give your queries a load 'factor' and the client will take that into account when picking connections to send queries over.
* Queries will be automatically retried when connections or nodes fail.
* Node monitoring: Node failure is automatically detected. Recovery checks occur using an exponential back-off algorithm
* CqlSharp listens to Cassandra events for node up, new node and node removed messages such that Cluster changes are automatically incorporated

Some non-functionals
--------------------
Expand Down

0 comments on commit 0e6096e

Please sign in to comment.