mysql_framework 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mysql_framework/connector.rb +5 -3
- data/lib/mysql_framework/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b58087950c7f077b63745aea37c1b706a76a8288ac60a5f3e02bf3bc937dde99
|
4
|
+
data.tar.gz: 49949a1605bc8bfafe114e0a4a5448f84be21cce1939e7ddd708828d389993ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a591cbb848fbcae354dd9c3a2c55c0ba1b44435701810018355ed9ca521efc2eb7a05613f92be2c9d175ea094a9b02fb1286e48ecd452d5e5985aad28ae1431
|
7
|
+
data.tar.gz: 6e64a6146a7949577a377019d4d7dd8b5439b023fb5a91780f367d371377ace7a632c91343fe490698887d8277586cf2dbdd7aac385cbb0c52c00223293a27c6
|
@@ -77,12 +77,14 @@ module MysqlFramework
|
|
77
77
|
|
78
78
|
# This method is called to execute a query which will return multiple result sets in an array
|
79
79
|
def query_multiple_results(query_string, provided_client = nil)
|
80
|
-
with_client(provided_client) do |client|
|
80
|
+
results = with_client(provided_client) do |client|
|
81
81
|
result = []
|
82
|
-
result << client.query(query_string)
|
83
|
-
result << client.store_result
|
82
|
+
result << client.query(query_string)
|
83
|
+
result << client.store_result while client.next_result
|
84
84
|
result.compact
|
85
85
|
end
|
86
|
+
|
87
|
+
results.map(&:to_a)
|
86
88
|
end
|
87
89
|
|
88
90
|
# This method is called to use a client within a transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql_framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|