kiba-plus 0.1.6 → 0.1.7

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
2
  SHA1:
3
- metadata.gz: 861e4d341112d878c3a33856142b514f86475884
4
- data.tar.gz: '05090fd337635b262970ac007c1f9fb550295e1b'
3
+ metadata.gz: c386e891c9d28764ef82bda986c6fc5e0d716e5c
4
+ data.tar.gz: 3de3393a84dcd102a1ef61842e276da41607be3c
5
5
  SHA512:
6
- metadata.gz: 223ab43b5c791aef57c9d46ef09825f6bb3b01e02a19b792f338279adc4206f8b69d4a9e0a8f284dcb29fd29e64700abb10c69c63305dfb228f270cd76e264ab
7
- data.tar.gz: 32cf285eb64b8200eba18753c0dcb0ec974af74b18ee90f6df52d431a5f2c4c632f305c1901f3b24abb76c59d146a50bf56673366ca1b01075fc8a3d830195f3
6
+ metadata.gz: 42166b7d2d0e2789e97003d20960e00b38ff91cef14aba6b69c309d8421262698bf4c30291a10d30d0fe34565ec650108866328125507ae40d0d4eb6850f4727
7
+ data.tar.gz: 51a240b480de7de724a377440a638798b27fd950c8a54e60899d1da026f44dc8e755eb7207fb7419640791314fe67985fa25658f1eb5859466590d37e0cacd34
@@ -9,6 +9,7 @@ module Kiba::Plus::Destination
9
9
  @options = options
10
10
  @options.assert_valid_keys(
11
11
  :connect_url,
12
+ :schema,
12
13
  :table_name,
13
14
  :columns,
14
15
  :truncate,
@@ -18,7 +19,7 @@ module Kiba::Plus::Destination
18
19
  :ignore_input_file_header
19
20
  )
20
21
  @conn = PG.connect(connect_url)
21
-
22
+ @conn.exec "SET search_path TO %s" % [ options[:schema] ] if options[:schema]
22
23
  init
23
24
  end
24
25
 
@@ -11,6 +11,7 @@ module Kiba::Plus::Destination
11
11
  @options = options
12
12
  @options.assert_valid_keys(
13
13
  :connect_url,
14
+ :schema,
14
15
  :table_name,
15
16
  :columns,
16
17
  :truncate,
@@ -19,7 +20,7 @@ module Kiba::Plus::Destination
19
20
  )
20
21
 
21
22
  @conn = PG.connect(connect_url)
22
-
23
+ @conn.exec "SET search_path TO %s" % [ options[:schema] ] if options[:schema]
23
24
  init
24
25
  end
25
26
 
@@ -1,5 +1,5 @@
1
1
  module Kiba
2
2
  module Plus
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiba-plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hooopo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-11 00:00:00.000000000 Z
11
+ date: 2017-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kiba