simple-sql 0.4.14 → 0.4.15

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,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: aaa14023291ea6ac0d23bc06a8382d978f9943fa
4
- data.tar.gz: ca4c92d7a81cf1fdaea39539a7cd3ac13af5f1fb
2
+ SHA256:
3
+ metadata.gz: c5c65724d140b754df7964ab1375bb158b1a001dad71aee907b6a3d98c777f61
4
+ data.tar.gz: 01040bcedee42aed7d0fb5fef381095340d6badb31abc6880e23c5e073a4ee76
5
5
  SHA512:
6
- metadata.gz: 154fd81c5fc6de28fa22643695d8218b7c5f7bda2f4b16f7b47b0a4fc6c0d9c7aa2b165ed35e6ef502fccb27304a95ddedc161e9fe8de574f336b19387afe13a
7
- data.tar.gz: 595f3b15f8f6cc4739bad9c63647a5c2fc598c513bc27a1514b451fec0c37349f1dd3d6e75a1b9418ed292d9384bdf25233a955d8145a36af39af73d32350943
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:
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module SQL
3
- VERSION = "0.4.14"
3
+ VERSION = "0.4.15"
4
4
  end
5
5
  end
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.14
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-14 00:00:00.000000000 Z
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.5.1
246
+ rubygems_version: 2.7.7
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: SQL with a simple interface