datapipe2 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fns/mssql_to_pgsql.rb +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e58251e81793f50d5d677bf7485c1f469dbc222c
4
- data.tar.gz: d66a83209077537948f0f1cc37278c657a50e333
3
+ metadata.gz: 8e48da794340262c31fcbf7998cbfe339a706de5
4
+ data.tar.gz: 9b01897b3940586e585910e6844c73b80fa7dfc0
5
5
  SHA512:
6
- metadata.gz: 0e2998ba98a465152dbaa9ed9e18253062e880a97625ff1cb55b085c55ceca0c68e32caaf6f77b20af13cbfacb15f09353be8455ba405ec79a9e2682ee9086ad
7
- data.tar.gz: 7d8cc4e5d3eb90df850c5f0f2bac941a4166dd5adcf2e0c2f971f962d5ed6fdc18e98b8df1ec2a63f2ef4047907af4a38e097b86f24372e2fb99e4d6c24ae9b3
6
+ metadata.gz: 2a68bcb27d7b0ab2b7e5821ca7e8941e9530009ab9395dec348b9e62b6517a1e2cef9e119a59d0d4ea6953b0896bd2c9022b1d44de614a41de2864171801eb4e
7
+ data.tar.gz: 133c82ddb456863a8e3e6d1800fe6dc0c470aba7d9e90e2bc29c0282d0ae4f6419f6bd3423337384999b26a951669b33a491ff1d51bdb6c4ef07db2b26c7e99f
@@ -15,11 +15,12 @@ def mssql_to_pgsql(select_sql, table_name, columns)
15
15
  results = s.connection.execute(select_sql)
16
16
 
17
17
  count = 0
18
- results.each(as: array, cache_rows: false) do |r|
18
+ results.each(as: :array, cache_rows: false) do |r|
19
19
  count += 1
20
- p '.' if count % 1000 == 0
20
+ print '.' if count % 1000 == 0
21
21
  d.connection.put_copy_data "#{r.join('|')}\n"
22
22
  end
23
+ puts ""
23
24
  d.connection.put_copy_end
24
25
 
25
26
  DataPipe2.log "#{table_name}: #{count}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datapipe2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guy Irvine