jvertica 0.0.3 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jvertica/version.rb +1 -1
- data/lib/jvertica.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 369bed78b93ecf0d0109978b511cc45888a34b48
|
4
|
+
data.tar.gz: 1dad70be1b3332bdd3600e090e882c91881a8a64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c13f6110d84ea92fa8a7fde4533031ca47edb9849f68afe7c549cef5d1f4acbfc9a6a74fda1837e2b32cc279401d9ac369d99b77eb14bd2f31c4f33aa4bfe5c2
|
7
|
+
data.tar.gz: 07b9bdd5d5b7b68c4ab4204e9880bfe2661d49c75be5314dede28bab32faaee018edfa1ca60e710d5d3c4a3c18bda161177fffdfa6de15343d4080427916c7a4
|
data/lib/jvertica/version.rb
CHANGED
data/lib/jvertica.rb
CHANGED
@@ -54,6 +54,10 @@ class Jvertica
|
|
54
54
|
@connection.commit
|
55
55
|
end
|
56
56
|
|
57
|
+
def rollback
|
58
|
+
@connection.rollback
|
59
|
+
end
|
60
|
+
|
57
61
|
#def prepare query
|
58
62
|
# @pstmt = @connection.prepareStatement query
|
59
63
|
#end
|
@@ -128,12 +132,13 @@ class Jvertica
|
|
128
132
|
|
129
133
|
begin
|
130
134
|
stream.execute
|
135
|
+
rejects = stream.getRejects
|
131
136
|
results = stream.finish
|
132
137
|
rescue => e
|
133
138
|
raise e
|
134
139
|
end
|
135
140
|
|
136
|
-
results
|
141
|
+
[results, rejects.to_ary]
|
137
142
|
end
|
138
143
|
|
139
144
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jvertica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- takahiro.nakayama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|