corm 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/corm/model.rb +4 -0
- metadata +2 -8
data/lib/corm/model.rb
CHANGED
@@ -138,6 +138,10 @@ module Corm
|
|
138
138
|
execute(statements['count']).first['count'].to_i
|
139
139
|
end
|
140
140
|
|
141
|
+
def self.drop!
|
142
|
+
execute("DROP TABLE #{[keyspace, table].compact.join '.'};")
|
143
|
+
end
|
144
|
+
|
141
145
|
def self.get(relations)
|
142
146
|
if statements['get'].nil?
|
143
147
|
fields = primary_key.flatten.map { |key| "#{key} = ?" }.join ' AND '
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: corm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cassandra-driver
|
@@ -92,18 +92,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
92
|
- - ! '>='
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
|
-
segments:
|
96
|
-
- 0
|
97
|
-
hash: -3166837481782397463
|
98
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
96
|
none: false
|
100
97
|
requirements:
|
101
98
|
- - ! '>='
|
102
99
|
- !ruby/object:Gem::Version
|
103
100
|
version: '0'
|
104
|
-
segments:
|
105
|
-
- 0
|
106
|
-
hash: -3166837481782397463
|
107
101
|
requirements: []
|
108
102
|
rubyforge_project:
|
109
103
|
rubygems_version: 1.8.23.2
|