datapipe2 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fns/mssql_to_pgsql.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e48da794340262c31fcbf7998cbfe339a706de5
|
4
|
+
data.tar.gz: 9b01897b3940586e585910e6844c73b80fa7dfc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a68bcb27d7b0ab2b7e5821ca7e8941e9530009ab9395dec348b9e62b6517a1e2cef9e119a59d0d4ea6953b0896bd2c9022b1d44de614a41de2864171801eb4e
|
7
|
+
data.tar.gz: 133c82ddb456863a8e3e6d1800fe6dc0c470aba7d9e90e2bc29c0282d0ae4f6419f6bd3423337384999b26a951669b33a491ff1d51bdb6c4ef07db2b26c7e99f
|
data/lib/fns/mssql_to_pgsql.rb
CHANGED
@@ -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
|
-
|
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}"
|