simple-sql 0.4.14 → 0.4.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/simple/sql/connection_adapter.rb +8 -0
- data/lib/simple/sql/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c5c65724d140b754df7964ab1375bb158b1a001dad71aee907b6a3d98c777f61
|
4
|
+
data.tar.gz: 01040bcedee42aed7d0fb5fef381095340d6badb31abc6880e23c5e073a4ee76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b12b22209fcd4e97a204b14485d1c25376c805ae78e4dcf9fc397686cc9335829a1ba9f45f3f3bc8ff43aa557b688e3580f3ac06d8c35d2c1635434762b4157
|
7
|
+
data.tar.gz: 6c6ffa8bc89d3136fb9ab59193b54af29f9f26ad0ca98836c18f5321ba946d0dd682572f0f34d45617ac23b31ac9605fb1e84c101888e3b1ac06eb35f1137abe
|
@@ -59,6 +59,14 @@ module Simple::SQL::ConnectionAdapter
|
|
59
59
|
records
|
60
60
|
end
|
61
61
|
|
62
|
+
# Runs a query and prints the results via "table_print"
|
63
|
+
def print(sql, *args)
|
64
|
+
require "table_print"
|
65
|
+
records = all sql, *args, into: Hash
|
66
|
+
tp records
|
67
|
+
records
|
68
|
+
end
|
69
|
+
|
62
70
|
# Runs a query and returns the first result row of a query.
|
63
71
|
#
|
64
72
|
# Examples:
|
data/lib/simple/sql/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radiospiel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-08-
|
12
|
+
date: 2018-08-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pg_array_parser
|
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
version: '0'
|
244
244
|
requirements: []
|
245
245
|
rubyforge_project:
|
246
|
-
rubygems_version: 2.
|
246
|
+
rubygems_version: 2.7.7
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: SQL with a simple interface
|