activerecord_partitioning 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,8 @@ module ActiveRecordPartitioning
|
|
3
3
|
end
|
4
4
|
|
5
5
|
class ConnectionPools
|
6
|
+
include Enumerable
|
7
|
+
|
6
8
|
attr_reader :key_name, :store
|
7
9
|
|
8
10
|
def initialize(key_name, store={})
|
@@ -38,6 +40,14 @@ module ActiveRecordPartitioning
|
|
38
40
|
@store.each(&block)
|
39
41
|
end
|
40
42
|
|
43
|
+
def values
|
44
|
+
@store.values
|
45
|
+
end
|
46
|
+
|
47
|
+
def keys
|
48
|
+
@store.keys
|
49
|
+
end
|
50
|
+
|
41
51
|
def size
|
42
52
|
@store.size
|
43
53
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_partitioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Xiao Li
|