Method: Cequel::Metal::DataSet#consistency

Defined in:
lib/cequel/metal/data_set.rb

#consistency(consistency) ⇒ DataSet

Change the consistency for queries performed by this data set

Parameters:

  • consistency (Symbol)

    a consistency level

Returns:

  • (DataSet)

    new data set tuned to the given consistency

See Also:

Since:

  • 1.1.0



564
565
566
567
568
# File 'lib/cequel/metal/data_set.rb', line 564

def consistency(consistency)
  clone.tap do |data_set|
    data_set.query_consistency = consistency
  end
end