Sha256: 4ccbdc53d71603a606adeef475808200742e22dcd26dfd460cbeb127407dbd6d
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
# encoding: utf-8 describe "UPDATE" do include QueryBuilder::CQL::Operators let(:table) { QueryBuilder::CQL.keyspace(:wildlife).table(:species) } it_behaves_like :query_builder do subject do table .update .set(name: :tiger, weight: 300) .update(size: 3) .where(id: 1, name: [:tiger, :bear]) .if_exists .if(name: :tiger) .using(ttl: 100, timestamp: 300) end let(:cql) { "UPDATE wildlife.species USING TIMESTAMP 300 AND TTL 100 SET name = 'tiger', weight = 300, size = 3 WHERE id = 1 AND name IN ('tiger', 'bear') IF EXISTS AND name = 'tiger';" } end end # describe UPDATE
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
query_builder-0.0.4 | spec/integration/update_spec.rb |
query_builder-0.0.3 | spec/integration/update_spec.rb |