quandl_cassandra 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1156756870d067c7a45b0adac3aeb28bb178341
|
4
|
+
data.tar.gz: 6694abc885d6f47089e18dd9835bce4376504b5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c0e26bb8a9312686564243b4191d785034a8e14c60aa41ec3b85e365ea20c4e649e1bf5dce16f89b2709945d4b2c22c4e7b9d3f64dc1571b255c3a769ab5492
|
7
|
+
data.tar.gz: 36620d39a8e99e4996c1aabd84d2c11ebfd06eba5e7bb39eb0aba2ccb9d41b9752447750ad249f2352c0e50422cc5475b6ae00a405df2ef8a9ac1b59a91ab7d7
|
data/UPGRADE.md
CHANGED
@@ -27,7 +27,7 @@ module Quandl::Cassandra::Base::Connection
|
|
27
27
|
c.async.execute( statement, query_consistency )
|
28
28
|
end
|
29
29
|
rescue Cql::QueryError => e
|
30
|
-
raise "#{
|
30
|
+
raise $!, "#{statement} #{$!}", $!.backtrace
|
31
31
|
end
|
32
32
|
|
33
33
|
def execute(statement, qconsistency = nil)
|
@@ -36,7 +36,7 @@ module Quandl::Cassandra::Base::Connection
|
|
36
36
|
c.execute( statement, qconsistency )
|
37
37
|
end
|
38
38
|
rescue Cql::QueryError => e
|
39
|
-
raise "#{
|
39
|
+
raise $!, "#{statement} #{$!}", $!.backtrace
|
40
40
|
end
|
41
41
|
|
42
42
|
def with_connection(&block)
|
@@ -10,7 +10,7 @@ module Quandl::Cassandra::Batch::Execute
|
|
10
10
|
def execute(rows, &block)
|
11
11
|
execute_in_batches(rows, &block)
|
12
12
|
rescue => e
|
13
|
-
raise "#{
|
13
|
+
raise $!, "#{block.call(*rows.first)} #{$!}", $!.backtrace
|
14
14
|
end
|
15
15
|
|
16
16
|
def batch_size
|
@@ -3,9 +3,12 @@ require 'spec_helper'
|
|
3
3
|
describe Quandl::Cassandra::Base::Connection do
|
4
4
|
|
5
5
|
describe ".reset_connection" do
|
6
|
+
|
6
7
|
it "should raise Cql::QueryError" do
|
7
|
-
|
8
|
-
|
8
|
+
expect{
|
9
|
+
Quandl::Cassandra.configuration.keyspace = 'missing_keyspace'
|
10
|
+
Post.reset_connection
|
11
|
+
}.to raise_error(Cql::QueryError)
|
9
12
|
end
|
10
13
|
end
|
11
14
|
|
data/spec/spec_helper.rb
CHANGED