Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added the ability to delete a column

  • Loading branch information...
commit 9da35f5c030b66cc204336fd259a6ce84180ccf5 1 parent e5a7795
@gillotte gillotte authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/FluentColumnFamily.cs
View
11 src/FluentColumnFamily.cs
@@ -249,6 +249,17 @@ public override bool TrySetColumn(object name, object value)
return true;
}
+ public void DeleteColumn(object name)
+ {
+ var schema = GetSchema().Columns.First(c => c.Name == name);
+
+ FluentColumn col = new FluentColumn(schema);
+ col.ColumnName = CassandraObject.GetCassandraObjectFromObject(name, schema.NameType);
+ col.SetParent(GetSelf());
+
+ MutationTracker.ColumnMutated(MutationType.Removed, col);
+ }
+
public override string ToString()
{
return String.Format("{0} - {1}", FamilyName, Key);
Please sign in to comment.
Something went wrong with that request. Please try again.