cassie 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cassie/schema/queries/drop_keyspace_query.rb +5 -0
- data/lib/cassie/statements/execution.rb +5 -3
- data/lib/cassie/statements/execution/callbacks.rb +1 -1
- data/lib/cassie/statements/execution/instrumentation.rb +1 -1
- data/lib/cassie/statements/execution/partition_linking.rb +1 -1
- data/lib/cassie/statements/execution/peeking.rb +2 -2
- data/lib/cassie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdd35bea404c01174b5739820be2ee47a1de1169
|
4
|
+
data.tar.gz: ba97bb6f99455c2dddee38da5a4eac5cd712193f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7db6b00ef94fb93a629ab2ec43b715056ba783bfd2227e7ef28a421b5414cf8613f323ea9ce8cde4638e756eeb96ff42d36317e8fcfea3a7d7d456902889264a
|
7
|
+
data.tar.gz: 013c2a8b413991c91bfd9ef9fe45445088a4ed470f7611f40ab5b0890bbe2fa5115ec93c7a4474828c48432eda620113365ce5ef11154d68cf0178a7d5682acd
|
@@ -54,16 +54,18 @@ module Cassie::Statements
|
|
54
54
|
end
|
55
55
|
|
56
56
|
# Executes the statment and populates result
|
57
|
+
# @param [Hash{Symbol => Object}] cassandra_driver execution options
|
57
58
|
# @return [Boolean] indicating a successful execution or not
|
58
|
-
def execute
|
59
|
-
@result = result_class.new(session.execute(statement, execution_options), result_opts)
|
59
|
+
def execute(opts={})
|
60
|
+
@result = result_class.new(session.execute(statement, execution_options.merge(opts)), result_opts)
|
60
61
|
result.success?
|
61
62
|
end
|
62
63
|
|
63
64
|
# Same as {#execute}. Raises if not succesfull.
|
65
|
+
# @param [Hash{Symbol => Object}] cassandra_driver execution options
|
64
66
|
# @return [Boolean] true if sucessful
|
65
67
|
# @raise [Cassie::Statements::ExecutionError] if the result was not sucessful, see {Cassie::Statements::Results::Core#success?}
|
66
|
-
def execute!
|
68
|
+
def execute!(opts={})
|
67
69
|
execute || (raise Cassie::Statements::ExecutionError.new(result))
|
68
70
|
end
|
69
71
|
|
@@ -6,14 +6,14 @@ module Cassie::Statements::Execution
|
|
6
6
|
@result_class = Cassie::Statements::Results::PeekingResult
|
7
7
|
end
|
8
8
|
|
9
|
-
def execute
|
9
|
+
def execute(*args)
|
10
10
|
assert_limit
|
11
11
|
@unpeeked_limit = limit
|
12
12
|
with_limit(limit + 1) do
|
13
13
|
super
|
14
14
|
end
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
def unpeeked_limit
|
18
18
|
@unpeeked_limit if defined?(@unpeeked_limit)
|
19
19
|
end
|
data/lib/cassie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Prothro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cassandra-driver
|