sqlconv 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sqlconv +1 -2
- data/sqlconv.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad0c506523fe07b486e58a73ad256547b3a03394d5f8e402b59d493d1acb4c50
|
4
|
+
data.tar.gz: c2efba37696f826f4a83895c8c69bad6b12f8a3b8c5bc4522ecffefad128ebe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e51b127c2bfad28a2667818b21e26c620949a249f11c7733c6c9b4860ce52247bfc981bfceccb2ed2cc630b21b5274d7cfa04733f19851a8828b5436ab0726d0
|
7
|
+
data.tar.gz: dd824c0c63c49cd82c38a16a96171d404ae30b9bba0db70f1edb068d7c8b21a2f2938a51f280b3badd019de9a61402542e0250c930731d7d9ca032a236ea4fdd
|
data/bin/sqlconv
CHANGED
@@ -13,7 +13,7 @@ class StringScanner
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def scan_str(str)
|
16
|
-
if
|
16
|
+
if peek(str.size) == str
|
17
17
|
self.pos += str.size
|
18
18
|
str
|
19
19
|
else
|
@@ -83,7 +83,6 @@ def conv(tab1, map1, tab2, map2, dump)
|
|
83
83
|
|
84
84
|
# parse insert statements
|
85
85
|
if data.scan_str("(") or data.scan_str(into + "(")
|
86
|
-
/(?:insert into (['"`]?)#{tab1}\1 values )?\(/io
|
87
86
|
cols = data.scan_while(/('.*?(?<!\\)'|(?>[^',()]+)|,)/, 2)
|
88
87
|
cols.empty? and (warn "bad sql parse: '#{line}'" or next)
|
89
88
|
data.scan(/\)[;,]\s*/)
|
data/sqlconv.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqlconv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Shreeve
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Allows mapping columns from a source to a destination table
|
14
14
|
email: steve.shreeve@gmail.com
|