sequel-vertica 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module Vertica
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
@@ -3,7 +3,9 @@ require 'vertica'
3
3
  module Sequel
4
4
  module Vertica
5
5
  class Database < Sequel::Database
6
+
6
7
  ::Vertica::Connection.send(:alias_method,:execute, :query)
8
+
7
9
  PK_NAME = 'C_PRIMARY'
8
10
  set_adapter_scheme :vertica
9
11
 
@@ -22,7 +24,7 @@ module Sequel
22
24
  def execute(sql, opts = {}, &block)
23
25
  res = nil
24
26
  synchronize(opts[:server]) do |conn|
25
- res = conn.query(sql)
27
+ res = log_yield(sql) { conn.query(sql) }
26
28
  res.each(&block)
27
29
  end
28
30
  res
@@ -82,7 +84,7 @@ module Sequel
82
84
 
83
85
  dataset = metadata_dataset.select(*selector).filter(filter).
84
86
  from(:v_catalog__columns).left_outer_join(:v_catalog__table_constraints, :table_id => :table_id)
85
-
87
+
86
88
  dataset.map do |row|
87
89
  row[:default] = nil if blank_object?(row[:default])
88
90
  row[:type] = schema_column_type(row[:db_type])
@@ -117,6 +119,10 @@ module Sequel
117
119
  def explain(opts={})
118
120
  execute((opts[:local] ? EXPLAIN_LOCAL : EXPLAIN) + select_sql).map{ |k, v| k == QUERY_PLAN }.join("\$")
119
121
  end
122
+
123
+ def supports_regexp?
124
+ true
125
+ end
120
126
  end
121
127
  end
122
128
  end
@@ -9,8 +9,8 @@ Gem::Specification.new do |gem|
9
9
  gem.homepage = "https://github.com/camilo/sequel-vertica"
10
10
 
11
11
  gem.add_development_dependency "rspec"
12
- gem.add_runtime_dependency "sequel", "~> 3.37.0"
13
- gem.add_runtime_dependency "vertica", "~> 0.9.1"
12
+ gem.add_runtime_dependency "sequel", "~> 3.42.0"
13
+ gem.add_runtime_dependency "vertica", "~> 0.9.2"
14
14
 
15
15
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
16
  gem.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-vertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-26 00:00:00.000000000Z
12
+ date: 2012-12-18 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70288174048380 !ruby/object:Gem::Requirement
16
+ requirement: &70143867804000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,29 +21,29 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70288174048380
24
+ version_requirements: *70143867804000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sequel
27
- requirement: &70288174047880 !ruby/object:Gem::Requirement
27
+ requirement: &70143867803160 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 3.37.0
32
+ version: 3.42.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70288174047880
35
+ version_requirements: *70143867803160
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: vertica
38
- requirement: &70288174047380 !ruby/object:Gem::Requirement
38
+ requirement: &70143867802220 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 0.9.1
43
+ version: 0.9.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70288174047380
46
+ version_requirements: *70143867802220
47
47
  description: Sequel adapter for the Vertica database
48
48
  email:
49
49
  - camilo@camilolopez.com
@@ -77,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  segments:
79
79
  - 0
80
- hash: 3211600729631246486
80
+ hash: 325789852756390842
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  none: false
83
83
  requirements:
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  segments:
88
88
  - 0
89
- hash: 3211600729631246486
89
+ hash: 325789852756390842
90
90
  requirements: []
91
91
  rubyforge_project:
92
92
  rubygems_version: 1.8.10