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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac3b3b8321e6e237fb2c6c525b06f692b59d81c3
4
- data.tar.gz: 568a9136bc7301e3b92b575e0aa30ef65671a6f8
3
+ metadata.gz: 369bed78b93ecf0d0109978b511cc45888a34b48
4
+ data.tar.gz: 1dad70be1b3332bdd3600e090e882c91881a8a64
5
5
  SHA512:
6
- metadata.gz: 6efa40f725aa641d6cd2695e85d78d9c53a63e7eb8d423ab3dcb19d24582723bcbba0e7ff0d2ff2d8b93af72098fc44792dab89d8068b1599c91cf67b0fed6ce
7
- data.tar.gz: c152c571ca00a4d241351a7be2089231a5e1de04381fdb0428298f28b791f811691ebce9a41ceca82d077bed0e62c41cdc1960d7c86de91067d28a93ad037f14
6
+ metadata.gz: c13f6110d84ea92fa8a7fde4533031ca47edb9849f68afe7c549cef5d1f4acbfc9a6a74fda1837e2b32cc279401d9ac369d99b77eb14bd2f31c4f33aa4bfe5c2
7
+ data.tar.gz: 07b9bdd5d5b7b68c4ab4204e9880bfe2661d49c75be5314dede28bab32faaee018edfa1ca60e710d5d3c4a3c18bda161177fffdfa6de15343d4080427916c7a4
@@ -1,3 +1,3 @@
1
1
  class Jvertica
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.1"
3
3
  end
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.0.3
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-24 00:00:00.000000000 Z
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