jvertica 0.1.10 → 0.1.11

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: 4e58f3395ddff02d8858035b5f1c8cd83630ecff
4
- data.tar.gz: 9cd5d1caacd940c2c69b133e939647e245ddd0de
3
+ metadata.gz: 5621f7030c3292cb6df477676201211a0ccead25
4
+ data.tar.gz: b6f8bc1ea53f2fcda33710348837aee5b529c759
5
5
  SHA512:
6
- metadata.gz: 776711c902b8c08f906dbff6b412f7a516feb9009d236d91284526e8ad75bf521c877b0cc921f3f8216ff36b7c7c97b6504d128d55bc183b94ee3894b476d430
7
- data.tar.gz: 8ee959130289e1b56635bce5dd2677a68d6a4131ba195dbfebffb3552ecc97ed9a2ba96bce6a6d1d71967f40b2747b7cf83e23e4900b838e063b3c1dbae4c80b
6
+ metadata.gz: f74d77760ed9e90405c1c8d9f85246b65a137cfa1ff8e034e889139fe92158f4e501e531b34d8da164cbfc99222b2346a94a64a3171553ef0d87c5ff2832b90f
7
+ data.tar.gz: 63dd22953040bf0add918624679f8ec1d99c24b1473f24b65583264647701574db2b303246e6343a594e6f9bdeec0057f967e4824510d7078e1de345ef985e98
data/example/copy.rb CHANGED
@@ -16,8 +16,7 @@ params = {
16
16
  puts params
17
17
 
18
18
  vertica = Jvertica.connect(params)
19
- vertica.query("DROP TABLE sandbox.jvertica_test") rescue nil
20
- vertica.query("CREATE TABLE sandbox.jvertica_test (id integer, str varchar(80))")
19
+ vertica.query("CREATE TABLE IF NOT EXISTS sandbox.jvertica_test (id integer, str varchar(80))")
21
20
  vertica.copy("COPY sandbox.jvertica_test FROM STDIN PARSER fjsonparser() NO COMMIT") do |io|
22
21
  File.open(File.expand_path('../data.json', __FILE__), 'r') do |f|
23
22
  begin
data/jvertica.gemspec CHANGED
@@ -6,8 +6,8 @@ require 'jvertica/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "jvertica"
8
8
  spec.version = Jvertica::VERSION
9
- spec.authors = ["takahiro.nakayama"]
10
- spec.email = ["civitaspo@gmail.com"]
9
+ spec.authors = ["takahiro.nakayama", "Naotoshi Seo"]
10
+ spec.email = ["civitaspo@gmail.com", "sonots@gmail.com"]
11
11
  spec.summary = %q{jvertica}
12
12
  spec.description = %q{jvertica presents wrapper methods of jdbc-vertica java native methods.}
13
13
  spec.homepage = "https://github.com/civitaspo/jvertica"
@@ -1,3 +1,3 @@
1
1
  class Jvertica
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
data/lib/jvertica.rb CHANGED
@@ -42,7 +42,7 @@ class Jvertica
42
42
 
43
43
  @connection =
44
44
  begin
45
- DriverManager.getConnection("jdbc:vertica://#{host}:#{port}/#{database}", prop)
45
+ com.vertica.jdbc.Driver.new.connect("jdbc:vertica://#{host}:#{port}/#{database}", prop)
46
46
  rescue => e
47
47
  raise ConnectionError.new(
48
48
  "Connection Failed.\n" <<
@@ -128,9 +128,6 @@ class Jvertica
128
128
 
129
129
  private
130
130
 
131
- class DriverManager < java.sql.DriverManager
132
- end
133
-
134
131
  class Properties < java.util.Properties
135
132
  end
136
133
 
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jvertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - takahiro.nakayama
8
+ - Naotoshi Seo
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
12
+ date: 2015-06-25 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  requirement: !ruby/object:Gem::Requirement
@@ -83,6 +84,7 @@ dependencies:
83
84
  description: jvertica presents wrapper methods of jdbc-vertica java native methods.
84
85
  email:
85
86
  - civitaspo@gmail.com
87
+ - sonots@gmail.com
86
88
  executables: []
87
89
  extensions: []
88
90
  extra_rdoc_files: []