datapipe2 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fns/db_to_pgsql.rb +2 -3
- 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: b8c9b30c2a32bab0563c5b4e5b6b68099bbe1a12
|
4
|
+
data.tar.gz: d3af6443b1f092fe1cdb2e24cd8d03efbfb5fe47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f10288f0f79471dd85dd0c1c37767bbd50d81c21ed199b679a17b68420d691641dd665492e246af6201defe9afc1cd3de4dda192fcc98a75f2286b0470e3de7
|
7
|
+
data.tar.gz: 7bc6f2355b31a8b7587115c751111415e92102c16b8f3e324bd2e264344c34d5d0da25b63c996ff9e168837697cff3643f30fe6175326e797a58daf3a86f602e
|
data/lib/fns/db_to_pgsql.rb
CHANGED
@@ -12,10 +12,9 @@ def db_to_pgsql(select_sql, table_name, columns)
|
|
12
12
|
}
|
13
13
|
d.connection.exec(copy_cmd)
|
14
14
|
|
15
|
-
|
16
|
-
|
15
|
+
rst = s.queryForResultset(select_sql)
|
17
16
|
count = 0
|
18
|
-
|
17
|
+
rst.each do |r|
|
19
18
|
count += 1
|
20
19
|
print '.' if count % 100_000 == 0
|
21
20
|
d.connection.put_copy_data "#{r.join('|')}\n"
|