vertica_rails_adapter 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'active_record/connection_adapters/abstract_adapter'
|
2
|
-
require 'active_support/core_ext/kernel/requires'
|
3
2
|
|
4
3
|
module ActiveRecord
|
5
4
|
class Base
|
@@ -48,27 +47,28 @@ module ActiveRecord
|
|
48
47
|
end
|
49
48
|
|
50
49
|
|
51
|
-
def self.instantiate(record)
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
50
|
+
# def self.instantiate(record)
|
51
|
+
# record.stringify_keys!
|
52
|
+
# model = find_sti_class(record[inheritance_column]).allocate
|
53
|
+
# model.init_with('attributes' => record)
|
54
|
+
|
55
|
+
# # if ActiveRecord::IdentityMap.enabled? && record_id
|
56
|
+
# # if (column = sti_class.columns_hash[sti_class.primary_key]) && column.number?
|
57
|
+
# # record_id = record_id.to_i
|
58
|
+
# # end
|
59
|
+
# # if instance = IdentityMap.get(sti_class, record_id)
|
60
|
+
# # instance.reinit_with('attributes' => record)
|
61
|
+
# # else
|
62
|
+
# # instance = sti_class.allocate.init_with('attributes' => record)
|
63
|
+
# # IdentityMap.add(instance)
|
64
|
+
# # end
|
65
|
+
# # else
|
66
|
+
# # Kernel.p record
|
67
|
+
# # end
|
68
|
+
|
69
|
+
# model
|
70
|
+
# end
|
69
71
|
|
70
|
-
model
|
71
|
-
end
|
72
72
|
end
|
73
73
|
|
74
74
|
module ConnectionAdapters
|
@@ -99,6 +99,7 @@ module ActiveRecord
|
|
99
99
|
def reconnect!
|
100
100
|
@connection.reset_connection
|
101
101
|
end
|
102
|
+
|
102
103
|
def reset
|
103
104
|
reconnect!
|
104
105
|
end
|
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: vertica_rails_adapter
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Sasan Padidar
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
type: :runtime
|
12
|
+
date: 2013-02-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: rails
|
23
|
-
|
24
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 3
|
32
|
-
- 0
|
33
|
-
- 0
|
34
|
-
version: 3.0.0
|
35
|
-
requirement: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.0
|
37
22
|
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
38
31
|
name: vertica
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
39
|
prerelease: false
|
40
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
version: "0"
|
49
|
-
requirement: *id002
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
50
46
|
description: Vertica Adapter for ActiveRecord.
|
51
|
-
email:
|
47
|
+
email:
|
52
48
|
- sasan@raybeam.com
|
53
49
|
executables: []
|
54
|
-
|
55
50
|
extensions: []
|
56
|
-
|
57
51
|
extra_rdoc_files: []
|
58
|
-
|
59
|
-
files:
|
52
|
+
files:
|
60
53
|
- .gitignore
|
61
54
|
- Gemfile
|
62
55
|
- LICENSE.txt
|
@@ -70,38 +63,35 @@ files:
|
|
70
63
|
- lib/vertica_rails_adapter.rb
|
71
64
|
- lib/vertica_rails_adapter/version.rb
|
72
65
|
- vertica_rails_adapter.gemspec
|
73
|
-
homepage:
|
66
|
+
homepage: ''
|
74
67
|
licenses: []
|
75
|
-
|
76
68
|
post_install_message:
|
77
69
|
rdoc_options: []
|
78
|
-
|
79
|
-
require_paths:
|
70
|
+
require_paths:
|
80
71
|
- lib
|
81
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
73
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
segments:
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
segments:
|
88
79
|
- 0
|
89
|
-
|
90
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
hash: 1240614807389346906
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
82
|
none: false
|
92
|
-
requirements:
|
93
|
-
- -
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
|
96
|
-
segments:
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
segments:
|
97
88
|
- 0
|
98
|
-
|
89
|
+
hash: 1240614807389346906
|
99
90
|
requirements: []
|
100
|
-
|
101
91
|
rubyforge_project:
|
102
|
-
rubygems_version: 1.8.
|
92
|
+
rubygems_version: 1.8.23
|
103
93
|
signing_key:
|
104
94
|
specification_version: 3
|
105
|
-
summary: Adds activerecord functionalites to your Vertica connection. The credit goes
|
95
|
+
summary: Adds activerecord functionalites to your Vertica connection. The credit goes
|
96
|
+
to https://github.com/zemis for starting up the project.
|
106
97
|
test_files: []
|
107
|
-
|