/// <summary> /// /// </summary> /// <param name="cqlQuery"></param> public void TryExecuteNonQuery(UTF8Type cqlQuery, string cqlVersion = null) { try { ExecuteNonQuery(cqlQuery, cqlVersion); } catch (Exception exc) { Debug.WriteLine(exc); } }
/// <summary> /// /// </summary> /// <param name="cqlQuery"></param> public void TryExecuteNonQuery(UTF8Type cqlQuery) { try { ExecuteNonQuery(cqlQuery); } catch (Exception exc) { Debug.WriteLine(exc); } }
public void Implicit_String_Cast() { // arrange string expected = "The quick brown fox jumps over the lazy dog."; // act UTF8Type actual = expected; // assert Assert.AreEqual(expected, (string)actual); }
public void Operator_NotEqualTo() { // arrange var value = "The quick brown fox jumps over the lazy dog."; UTF8Type type = value; // act bool actual = type != value; // assert Assert.IsFalse(actual); }
public void CassandraType_Cast() { // arranage string expected = "The quick brown fox jumps over the lazy dog."; UTF8Type actualType = expected; // act CassandraType actual = actualType; // assert Assert.AreEqual(expected, (string)actual); }
public ExecuteCqlNonQuery(UTF8Type cqlQuery) { CqlQuery = cqlQuery; }
public ExecuteCqlQuery(UTF8Type cqlQuery, string cqlVersion) { CqlQuery = cqlQuery; CqlVersion = cqlVersion; }
/// <summary> /// /// </summary> /// <param name="cqlQuery"></param> public void ExecuteNonQuery(UTF8Type cqlQuery) { var op = new ExecuteCqlNonQuery(cqlQuery); ExecuteOperation(op); }
/// <summary> /// /// </summary> /// <param name="cqlQuery"></param> public IEnumerable <ICqlRow> ExecuteQuery(UTF8Type cqlQuery) { var op = new ExecuteCqlQuery(cqlQuery); return(ExecuteOperation(op)); }
public static void AddUTF8(this CompositeType type, UTF8Type value) { type.Add(value); }
public static IEnumerable<ICqlRow> Cql(this CassandraColumnFamily family, UTF8Type cqlQuery) { var op = new ExecuteCqlQuery(cqlQuery, family.Context.ConnectionBuilder.CompressCqlQueries); return family.ExecuteOperation(op); }
/// <summary> /// /// </summary> /// <param name="cqlQuery"></param> public void ExecuteNonQuery(UTF8Type cqlQuery, string cqlVersion = null) { var op = new ExecuteCqlNonQuery(cqlQuery, cqlVersion); ExecuteOperation(op); }
/// <summary> /// /// </summary> /// <param name="cqlQuery"></param> public IEnumerable <ICqlRow> ExecuteQuery(UTF8Type cqlQuery, string cqlVersion = null) { var op = new ExecuteCqlQuery(cqlQuery, cqlVersion); return(ExecuteOperation(op)); }
public static IEnumerable <ICqlRow <CompareWith> > Cql <CompareWith>(this CassandraColumnFamily <CompareWith> family, UTF8Type cqlQuery) where CompareWith : CassandraType { var op = new ExecuteCqlQuery <CompareWith>(cqlQuery); return(family.ExecuteOperation(op)); }
public ExecuteCqlQuery(UTF8Type cqlQuery, bool?compressCqlQuery = null) { CqlQuery = cqlQuery; CompressCqlQuery = compressCqlQuery ?? CassandraContext.CurrentConnectionBuilder.CompressCqlQueries; }