sessionm-cassandra_object 4.0.9 → 4.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2Q1NWZkM2IwNWRiNmE0MTZjYTQzMTIxMDljOGM5NWJiNjEyOGQ5Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmM3MWFjYTYzY2FhZjE4ZjZiZGM5NzJkYTU1YTU2MGIxYzM0ZTVlOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2UyNTUxMWIyNjNhZmVkYmIyNmJmOTZkZGNmYmZiYTk2ZmU0NTM4OTZlMjdj
|
10
|
+
NWUwNTMxM2ZiNjdiYWE0M2QzOTY2OTJiNTBjYmNjYTU1MjFjZDE0ZGQyYWZh
|
11
|
+
MmMzOWRjNDc4ZDAwYmUzMTYxYjdiNTg3YjliODNkM2I0MmUwZGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWIxZjU2YTczYWIyYjY2MjUxNzI4OGI0YzM1ZjZhYzc1Mjg4OTk4NGNkZTQy
|
14
|
+
ZTczNTFmYTBhMGI3YzU3YjNkMjk3NzM1Zjk5ZjUyYTVlMmQ3ZDQwMDhlOGUz
|
15
|
+
NjVmYTk3ZTRlNDQ4YzEzZmI1YjViOWMyMzljMDQwOTdlOWRiZmM=
|
@@ -120,9 +120,10 @@ module CassandraObject
|
|
120
120
|
result = async ? self.execute_async(query, execute_options(opts)) : self.execute(query, execute_options(opts))
|
121
121
|
return result if async
|
122
122
|
|
123
|
-
result
|
124
|
-
|
125
|
-
|
123
|
+
data = result
|
124
|
+
.inject({}) { |hsh, row| hsh[row[NAME_FIELD]] = row[VALUE_FIELD]; hsh }
|
125
|
+
|
126
|
+
columns.map { |column| data[column.to_s] }
|
126
127
|
end
|
127
128
|
|
128
129
|
def add(column_family, key, by, fields, opts=nil)
|