sqlconv 0.5.0 → 0.5.1
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 +4 -4
- data/bin/sqlconv +1 -0
- data/sqlconv.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbf6ec2d877cd13e69263d99346eab703db7e08ff7c1a0be9c474cf686f2772f
|
4
|
+
data.tar.gz: 154c0190cb9966dd514d2567ea51777ce261dd252843019108288f308d50ebee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77e70dd1a66cb5595c39237c84980900bc2aff13af90564dcc56d0957a8a5943c6508c863ec65878e9bd701d191d29c2a3307f55a55c8497707236586ce62314
|
7
|
+
data.tar.gz: b96cf6c61e4c649ac95f2f332489e5dc67f36e5f6c8ab76aacaa1eaaa8090f34eb9ef7cb640e02448dbcfa2415bdbac1af15e136abd5f31e83bc7e3da7e12edd
|
data/bin/sqlconv
CHANGED
@@ -76,6 +76,7 @@ def conv(tab1, map1, tab2, map2, dump)
|
|
76
76
|
# find source table
|
77
77
|
data.string = dump.read # dump.read(5000) # TODO: Add streaming support
|
78
78
|
into = data.scan_for(/insert into (['"`]?)#{tab1}\1 values /io)
|
79
|
+
into or (warn "unable to find insert statements for the '#{tab1}' table" or exit)
|
79
80
|
|
80
81
|
# process each line
|
81
82
|
loop do
|
data/sqlconv.gemspec
CHANGED