vertica 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +7 -0
- data/.infinity_test +8 -0
- data/Gemfile +2 -4
- data/README.md +51 -25
- data/Rakefile +5 -37
- data/lib/vertica.rb +1 -3
- data/lib/vertica/column.rb +1 -1
- data/lib/vertica/connection.rb +6 -2
- data/lib/vertica/error.rb +1 -0
- data/lib/vertica/messages/message.rb +1 -2
- data/lib/vertica/query.rb +0 -1
- data/lib/vertica/version.rb +3 -0
- data/test/connection.yml.example +8 -0
- data/test/functional/connection_test.rb +4 -4
- data/test/functional/query_test.rb +32 -2
- data/test/functional/value_conversion_test.rb +1 -1
- data/test/resources/test_ruby_vertica_table.csv +3 -0
- data/test/test_helper.rb +2 -1
- data/test/unit/backend_message_test.rb +1 -1
- data/test/unit/frontend_message_test.rb +1 -1
- data/test/unit/quoting_test.rb +1 -1
- data/vertica.gemspec +27 -0
- metadata +39 -21
- data/Gemfile.lock +0 -20
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NTFhOTJlZWQ4NjE2NTNjMzk5YzQ5YzgxNzRmZTZkYjg0Mjg2NzBkZg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YzdlZWQ5ZDYxNzU5YTVmYzUzM2EzZWM3OWUxYWMxOGY5ZDBiNjBhYw==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDdlZTgzMGU3NDExZTQ5ZTgxYmJjMmViMDYzODM4ZjI0YWZjODQ0MzYwZDJl
|
10
|
+
YmQ3NTBjNGQ5MDQxY2FmZjA0MTQxZTU0NDBkZjI2YjQwYmQzMjZmOThhMTAz
|
11
|
+
MzYwM2FiYTRmNWY3NjdiMDhmZTVjYWJiM2ZjYTVmNTU0ZjhhYzg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ODQ4NzNlZWVhMDAwODNiNmNlNzdiY2I5ZjBiNGM5ODM2MmYxMjM2Yjg4ZDM2
|
14
|
+
NmNmMzBlYTI4MDRlM2Q0NzU2MzQ0ZThlMTZmMjNmZWJiMjk5NTMxNDljZmI0
|
15
|
+
YTNhZjU3YmYzNTJkNjlhNzQwNjUyNGQzZTUyY2YyMWZlYjkxNzY=
|
data/.gitignore
ADDED
data/.infinity_test
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -3,27 +3,34 @@
|
|
3
3
|
Vertica is a pure Ruby library for connecting to Vertica databases. You can learn more
|
4
4
|
about Vertica at http://www.vertica.com.
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
- Connecting, including over SSL
|
7
|
+
- Executing queries, with results as streaming rows or buffered resultsets.
|
8
|
+
- "COPY table FROM STDIN" statement to load data.
|
9
|
+
- Tested against Ruby 1.9 and 2.0, and Vertica version 6.0 and 6.1.
|
10
|
+
- The library is thread-safe as of version 0.11. However, you can only run one
|
11
|
+
statement at the time per connection, because the protocol is stateful.
|
9
12
|
|
10
|
-
|
13
|
+
|
14
|
+
## Installation
|
11
15
|
|
12
16
|
$ gem install vertica
|
13
17
|
|
14
|
-
|
18
|
+
Or add it to your Gemfile:
|
15
19
|
|
16
|
-
|
20
|
+
gem 'vertica'
|
21
|
+
# gem 'vertica', git: 'git://github.com/sprsquish/vertica.git' # HEAD version
|
17
22
|
|
18
|
-
|
23
|
+
### Compatiblity
|
19
24
|
|
20
|
-
|
25
|
+
- Ruby 1.8 is no longer supported, but version 0.9.x should still support it.
|
26
|
+
- Vertica versions 4.1, 5.0, and 5.1 worked with at some point with this gem, but
|
27
|
+
compatibility is no longer tested. It probably still works as the protocol hasn't
|
28
|
+
changed.
|
21
29
|
|
22
|
-
git://github.com/sprsquish/vertica.git
|
23
30
|
|
24
|
-
|
31
|
+
## Usage
|
25
32
|
|
26
|
-
|
33
|
+
### Connecting
|
27
34
|
|
28
35
|
The <code>Vertica.connect</code> methods takes a connection parameter hash and returns a
|
29
36
|
connection object. For most options, the gem will use a default value if no value is provided.
|
@@ -42,28 +49,22 @@ connection object. For most options, the gem will use a default value if no valu
|
|
42
49
|
|
43
50
|
To close the connection when you're done with it, run <code>connection.close</code>.
|
44
51
|
|
45
|
-
|
52
|
+
### Querying with unbuffered result as streaming rows
|
46
53
|
|
47
54
|
You can run simple queries using the <code>query</code> method, either in buffered and
|
48
55
|
unbuffered mode. For large result sets, you probably do not want to use buffered results.
|
49
56
|
|
50
|
-
### Unbuffered result
|
51
|
-
|
52
57
|
Get all the result rows without buffering by providing a block:
|
53
58
|
|
54
59
|
connection.query("SELECT id, name FROM my_table") do |row|
|
55
60
|
puts row # => {:id => 123, :name => "Jim Bob"}
|
56
61
|
end
|
57
|
-
|
58
|
-
connection.close
|
59
62
|
|
60
63
|
Note: you can only use the connection for one query at the time. If you try to run another
|
61
64
|
query when the connection is still busy delivering the results of a previous query, a
|
62
65
|
`Vertica::Error::SynchronizeError` will be raised. Use buffered resultsets to prevent this
|
63
66
|
problem.
|
64
67
|
|
65
|
-
### Buffered result
|
66
|
-
|
67
68
|
Store the result of the query method as a variable to get a buffered resultset:
|
68
69
|
|
69
70
|
result = connection.query("SELECT id, name FROM my_table")
|
@@ -88,11 +89,29 @@ be returned as arrays by providing a row_style:
|
|
88
89
|
By adding <code>:row_style => :array</code> to the connection hash, all results will be
|
89
90
|
returned as array.
|
90
91
|
|
91
|
-
|
92
|
+
### Loading data using COPY
|
93
|
+
|
94
|
+
Using the COPY statement, you can load arbitrary data from your ruby script.
|
95
|
+
|
96
|
+
connection.copy("COPY table FROM STDIN ...") do |stdin|
|
97
|
+
File.open('data.tsv', 'r') do |f|
|
98
|
+
begin
|
99
|
+
stdin << f.gets
|
100
|
+
end until f.eof?
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
You can also provide a filename or an IO object:
|
105
|
+
|
106
|
+
connection.copy("COPY table FROM STDIN ...", "data.csv")
|
107
|
+
connection.copy("COPY table FROM STDIN ...", io)
|
108
|
+
|
109
|
+
|
110
|
+
## About
|
92
111
|
|
93
112
|
This package is MIT licensed. See the LICENSE file for more information.
|
94
113
|
|
95
|
-
|
114
|
+
### Development
|
96
115
|
|
97
116
|
This project comes with a test suite. The unit tests in <tt>/test/unit</tt> do not need a database
|
98
117
|
connection to run, the functional tests in <tt>/test/functional</tt> do need a working
|
@@ -108,9 +127,16 @@ prefixed with <tt>test_ruby_vertica_</tt>.
|
|
108
127
|
|
109
128
|
* Asynchronous / EventMachine version
|
110
129
|
|
111
|
-
|
130
|
+
### Authors
|
131
|
+
|
132
|
+
* [Matt Bauer](https://github.com/mattbauer) all the hard work
|
133
|
+
* [Jeff Smick](https://github.com/sprsquish) current maintainer
|
134
|
+
* [Willem van Bergen](https://github.com/wvanbergen) contributor
|
135
|
+
* [Camilo Lopez](https://github.com/camilo) contributor
|
136
|
+
* [Erik Selin](https://github.com/tyro89) contributor
|
137
|
+
|
138
|
+
### See also
|
112
139
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
* [Camilo Lopez](http://github.com/camilo) contributor
|
140
|
+
* [Documentation](http://www.rubydoc.info/gems/vertica/frames) API documentation.
|
141
|
+
* [sequel-vertica](https://github.com/camilo/sequel-vertica) Sequel integration.
|
142
|
+
* [newrelic-vertica](https://github.com/wvanbergen/newrelic-vertica) NewRelic monitoring of queries.
|
data/Rakefile
CHANGED
@@ -1,47 +1,15 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rake/testtask"
|
3
|
+
require "yard"
|
3
4
|
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = 'vertica'
|
8
|
-
gem.summary = 'Pure ruby library for interacting with Vertica'
|
9
|
-
gem.description = 'Query Vertica with ruby'
|
10
|
-
|
11
|
-
gem.email = 'sprsquish@gmail.com'
|
12
|
-
gem.homepage = 'http://github.com/sprsquish/vertica'
|
13
|
-
gem.authors = ['Jeff Smick', 'Matt Bauer', 'Willem van Bergen']
|
14
|
-
|
15
|
-
gem.files = FileList["[A-Z]*", 'lib/**/*.rb'].to_a
|
16
|
-
|
17
|
-
gem.test_files = FileList['test/**/*.rb']
|
18
|
-
|
19
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
20
|
-
end
|
21
|
-
|
22
|
-
Jeweler::GemcutterTasks.new
|
23
|
-
rescue LoadError
|
24
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
25
|
-
end
|
26
|
-
|
27
|
-
require 'rake/testtask'
|
28
5
|
Rake::TestTask.new(:test) do |test|
|
29
6
|
test.libs << 'test' << 'lib'
|
30
7
|
test.pattern = 'test/**/*_test.rb'
|
31
8
|
test.verbose = true
|
32
9
|
end
|
33
10
|
|
34
|
-
|
35
|
-
|
36
|
-
YARD::Rake::YardocTask.new do |t|
|
37
|
-
t.options = ['--no-private', '-m', 'markdown', '-o', './doc']
|
38
|
-
end
|
39
|
-
rescue LoadError
|
40
|
-
task :yardoc do
|
41
|
-
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
|
42
|
-
end
|
11
|
+
YARD::Rake::YardocTask.new(:doc) do |t|
|
12
|
+
t.options = ['--no-private', '-m', 'markdown', '-o', './doc']
|
43
13
|
end
|
44
14
|
|
45
|
-
desc 'Generate documentation'
|
46
|
-
task :doc => :yard
|
47
15
|
task :default => :test
|
data/lib/vertica.rb
CHANGED
@@ -7,9 +7,6 @@ require 'bigdecimal'
|
|
7
7
|
# prevent SQL injection.
|
8
8
|
module Vertica
|
9
9
|
|
10
|
-
# The version number of this library.
|
11
|
-
VERSION = File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION])).strip
|
12
|
-
|
13
10
|
# The protocol version (3.0.0) implemented in this library.
|
14
11
|
PROTOCOL_VERSION = 3 << 16
|
15
12
|
|
@@ -51,5 +48,6 @@ module Vertica
|
|
51
48
|
end
|
52
49
|
end
|
53
50
|
|
51
|
+
require 'vertica/version'
|
54
52
|
require 'vertica/error'
|
55
53
|
require 'vertica/connection'
|
data/lib/vertica/column.rb
CHANGED
@@ -6,7 +6,7 @@ module Vertica
|
|
6
6
|
attr_reader :size
|
7
7
|
attr_reader :data_type
|
8
8
|
|
9
|
-
STRING_CONVERTER =
|
9
|
+
STRING_CONVERTER = lambda { |s| s.force_encoding('utf-8') }
|
10
10
|
|
11
11
|
DATA_TYPE_CONVERSIONS = [
|
12
12
|
[:unspecified, nil],
|
data/lib/vertica/connection.rb
CHANGED
@@ -70,7 +70,6 @@ class Vertica::Connection
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def write_message(message)
|
73
|
-
raise ArgumentError, "invalid message: (#{message.inspect})" unless message.respond_to?(:to_bytes)
|
74
73
|
puts "=> #{message.inspect}" if @debug
|
75
74
|
write_bytes message.to_bytes
|
76
75
|
rescue SystemCallError, IOError => e
|
@@ -180,7 +179,12 @@ class Vertica::Connection
|
|
180
179
|
def run_with_mutex(job)
|
181
180
|
boot_connection if closed?
|
182
181
|
if @mutex.try_lock
|
183
|
-
|
182
|
+
begin
|
183
|
+
job.run
|
184
|
+
rescue StandardError
|
185
|
+
@mutex.unlock if @mutex.locked?
|
186
|
+
raise
|
187
|
+
end
|
184
188
|
else
|
185
189
|
raise Vertica::Error::SynchronizeError.new(job)
|
186
190
|
end
|
data/lib/vertica/error.rb
CHANGED
@@ -44,6 +44,7 @@ class Vertica::Error < StandardError
|
|
44
44
|
'42V01' => (MissingRelation = Class.new(Vertica::Error::QueryError)),
|
45
45
|
'42703' => (MissingColumn = Class.new(Vertica::Error::QueryError)),
|
46
46
|
'22V04' => (CopyRejected = Class.new(Vertica::Error::QueryError)),
|
47
|
+
'08000' => (CopyFromStdinFailed = Class.new(Vertica::Error::QueryError)),
|
47
48
|
'42501' => (PermissionDenied = Class.new(Vertica::Error::QueryError))
|
48
49
|
}
|
49
50
|
end
|
@@ -8,8 +8,7 @@ module Vertica
|
|
8
8
|
|
9
9
|
def message_string(msg)
|
10
10
|
msg = msg.join if msg.is_a?(Array)
|
11
|
-
|
12
|
-
message_size = [bytesize].pack('N')
|
11
|
+
message_size = [4 + msg.bytesize].pack('N')
|
13
12
|
message_id ? "#{message_id}#{message_size}#{msg}" : "#{message_size}#{msg}"
|
14
13
|
end
|
15
14
|
end
|
data/lib/vertica/query.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
|
-
class ConnectionTest < Test
|
3
|
+
class ConnectionTest < Minitest::Test
|
4
4
|
|
5
5
|
def teardown
|
6
6
|
@connection.close if @connection
|
@@ -57,8 +57,8 @@ class ConnectionTest < Test::Unit::TestCase
|
|
57
57
|
connection.reset_connection
|
58
58
|
|
59
59
|
assert_valid_open_connection(connection)
|
60
|
-
|
61
|
-
|
60
|
+
assert original_backend_pid != connection.backend_pid
|
61
|
+
assert original_backend_key != connection.backend_key
|
62
62
|
assert_equal :no_transaction, connection.transaction_status
|
63
63
|
end
|
64
64
|
|
@@ -76,7 +76,7 @@ class ConnectionTest < Test::Unit::TestCase
|
|
76
76
|
def test_connection_inspect_should_not_print_password
|
77
77
|
connection = Vertica::Connection.new(TEST_CONNECTION_HASH)
|
78
78
|
inspected_string = connection.inspect
|
79
|
-
|
79
|
+
assert inspected_string !~ /:password=>#{TEST_CONNECTION_HASH[:password]}/
|
80
80
|
end
|
81
81
|
|
82
82
|
def test_connection_timed_out_error
|
@@ -1,7 +1,8 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
require 'zlib'
|
3
|
+
class TestError < StandardError; end
|
3
4
|
|
4
|
-
class QueryTest < Test
|
5
|
+
class QueryTest < Minitest::Test
|
5
6
|
|
6
7
|
def setup
|
7
8
|
@connection = Vertica::Connection.new(TEST_CONNECTION_HASH)
|
@@ -161,6 +162,35 @@ class QueryTest < Test::Unit::TestCase
|
|
161
162
|
assert_equal [[1, "matt"], [11, "Stuff"], [12, "More stuff"], [13, "Final stuff"]], result.rows
|
162
163
|
end
|
163
164
|
|
165
|
+
def test_copy_with_ruby_exception
|
166
|
+
2.times do
|
167
|
+
begin
|
168
|
+
@connection.copy "COPY test_ruby_vertica_table FROM STDIN" do |data|
|
169
|
+
data.write "11|#{"a" * 10}\n"
|
170
|
+
raise TestError
|
171
|
+
end
|
172
|
+
rescue Vertica::Error::CopyFromStdinFailed
|
173
|
+
end
|
174
|
+
|
175
|
+
result = @connection.query("SELECT id FROM test_ruby_vertica_table ORDER BY id", :row_style => :array)
|
176
|
+
assert_equal 1, result.length
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
def test_copy_with_backend_exception
|
181
|
+
2.times do
|
182
|
+
begin
|
183
|
+
@connection.copy "COPY test_ruby_vertica_table FROM STDIN ABORT ON ERROR" do |data|
|
184
|
+
data.write "11|#{"a" * 10}|11\n" # write invalid data
|
185
|
+
end
|
186
|
+
rescue Vertica::Error::CopyRejected
|
187
|
+
end
|
188
|
+
|
189
|
+
result = @connection.query("SELECT id FROM test_ruby_vertica_table ORDER BY id", :row_style => :array)
|
190
|
+
assert_equal 1, result.length
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
164
194
|
def test_copy_in_with_file
|
165
195
|
filename = File.expand_path('../../resources/test_ruby_vertica_table.csv', __FILE__)
|
166
196
|
@connection.copy "COPY test_ruby_vertica_table FROM STDIN", filename
|
@@ -211,7 +241,7 @@ class QueryTest < Test::Unit::TestCase
|
|
211
241
|
end
|
212
242
|
|
213
243
|
def test_raise_when_connection_is_in_use
|
214
|
-
|
244
|
+
assert_raises(Vertica::Error::SynchronizeError) do
|
215
245
|
@connection.query("SELECT 1 UNION SELECT 2") do |record|
|
216
246
|
@connection.query("SELECT 3")
|
217
247
|
end
|
data/test/test_helper.rb
CHANGED
data/test/unit/quoting_test.rb
CHANGED
data/vertica.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'vertica/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "vertica"
|
9
|
+
s.summary = "Pure Ruby library for interacting with Vertica"
|
10
|
+
s.description = "Query Vertica with ruby"
|
11
|
+
s.homepage = "https://github.com/sprsquish/vertica"
|
12
|
+
s.license = "MIT"
|
13
|
+
s.version = Vertica::VERSION
|
14
|
+
|
15
|
+
s.authors = ["Jeff Smick", "Matt Bauer", "Willem van Bergen"]
|
16
|
+
s.email = ["sprsquish@gmail.com", "matt@ciderapps.com", "willem@railsdoctors.com"]
|
17
|
+
|
18
|
+
s.extra_rdoc_files = ["README.md"]
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
s.files = `git ls-files`.split($/)
|
22
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
23
|
+
|
24
|
+
s.add_development_dependency 'rake'
|
25
|
+
s.add_development_dependency 'yard'
|
26
|
+
s.add_development_dependency 'minitest', '~> 5'
|
27
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vertica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
5
|
-
prerelease:
|
4
|
+
version: 0.11.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jeff Smick
|
@@ -11,54 +10,66 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2013-
|
13
|
+
date: 2013-10-31 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: rake
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
19
|
- - ! '>='
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: '0'
|
24
|
-
type: :
|
22
|
+
type: :development
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
26
|
- - ! '>='
|
30
27
|
- !ruby/object:Gem::Version
|
31
28
|
version: '0'
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
|
-
name:
|
30
|
+
name: yard
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
33
|
- - ! '>='
|
38
34
|
- !ruby/object:Gem::Version
|
39
35
|
version: '0'
|
40
|
-
type: :
|
36
|
+
type: :development
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
40
|
- - ! '>='
|
46
41
|
- !ruby/object:Gem::Version
|
47
42
|
version: '0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: minitest
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '5'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '5'
|
48
57
|
description: Query Vertica with ruby
|
49
|
-
email:
|
58
|
+
email:
|
59
|
+
- sprsquish@gmail.com
|
60
|
+
- matt@ciderapps.com
|
61
|
+
- willem@railsdoctors.com
|
50
62
|
executables: []
|
51
63
|
extensions: []
|
52
64
|
extra_rdoc_files:
|
53
|
-
- LICENSE
|
54
65
|
- README.md
|
55
66
|
files:
|
67
|
+
- .gitignore
|
68
|
+
- .infinity_test
|
56
69
|
- Gemfile
|
57
|
-
- Gemfile.lock
|
58
70
|
- LICENSE
|
59
71
|
- README.md
|
60
72
|
- Rakefile
|
61
|
-
- VERSION
|
62
73
|
- lib/vertica.rb
|
63
74
|
- lib/vertica/column.rb
|
64
75
|
- lib/vertica/connection.rb
|
@@ -100,42 +111,49 @@ files:
|
|
100
111
|
- lib/vertica/messages/message.rb
|
101
112
|
- lib/vertica/query.rb
|
102
113
|
- lib/vertica/result.rb
|
114
|
+
- lib/vertica/version.rb
|
115
|
+
- test/connection.yml.example
|
103
116
|
- test/functional/connection_test.rb
|
104
117
|
- test/functional/query_test.rb
|
105
118
|
- test/functional/value_conversion_test.rb
|
119
|
+
- test/resources/test_ruby_vertica_table.csv
|
106
120
|
- test/test_helper.rb
|
107
121
|
- test/unit/backend_message_test.rb
|
108
122
|
- test/unit/frontend_message_test.rb
|
109
123
|
- test/unit/quoting_test.rb
|
110
|
-
|
111
|
-
|
124
|
+
- vertica.gemspec
|
125
|
+
homepage: https://github.com/sprsquish/vertica
|
126
|
+
licenses:
|
127
|
+
- MIT
|
128
|
+
metadata: {}
|
112
129
|
post_install_message:
|
113
130
|
rdoc_options: []
|
114
131
|
require_paths:
|
115
132
|
- lib
|
116
133
|
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
-
none: false
|
118
134
|
requirements:
|
119
135
|
- - ! '>='
|
120
136
|
- !ruby/object:Gem::Version
|
121
137
|
version: '0'
|
122
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
139
|
requirements:
|
125
140
|
- - ! '>='
|
126
141
|
- !ruby/object:Gem::Version
|
127
142
|
version: '0'
|
128
143
|
requirements: []
|
129
144
|
rubyforge_project:
|
130
|
-
rubygems_version: 1.
|
145
|
+
rubygems_version: 2.1.4
|
131
146
|
signing_key:
|
132
|
-
specification_version:
|
133
|
-
summary: Pure
|
147
|
+
specification_version: 4
|
148
|
+
summary: Pure Ruby library for interacting with Vertica
|
134
149
|
test_files:
|
150
|
+
- test/connection.yml.example
|
135
151
|
- test/functional/connection_test.rb
|
136
152
|
- test/functional/query_test.rb
|
137
153
|
- test/functional/value_conversion_test.rb
|
154
|
+
- test/resources/test_ruby_vertica_table.csv
|
138
155
|
- test/test_helper.rb
|
139
156
|
- test/unit/backend_message_test.rb
|
140
157
|
- test/unit/frontend_message_test.rb
|
141
158
|
- test/unit/quoting_test.rb
|
159
|
+
has_rdoc:
|
data/Gemfile.lock
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
git (1.2.5)
|
5
|
-
jeweler (1.8.4)
|
6
|
-
bundler (~> 1.0)
|
7
|
-
git (>= 1.2.5)
|
8
|
-
rake
|
9
|
-
rdoc
|
10
|
-
json (1.7.7)
|
11
|
-
rake (10.0.4)
|
12
|
-
rdoc (3.12.2)
|
13
|
-
json (~> 1.4)
|
14
|
-
|
15
|
-
PLATFORMS
|
16
|
-
ruby
|
17
|
-
|
18
|
-
DEPENDENCIES
|
19
|
-
jeweler
|
20
|
-
rake
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.11.0
|