blsk_ruby_core_api 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 951752d03f54da4ddbf6d0b906bbe453332912625b091bab48c7c7e37e5e25bb
|
4
|
+
data.tar.gz: d720cdadec8d3028824975157e60e2399622cd9191b807e9d87bb8891728a626
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cb52c3820d425bea73fef1efc672ef581a35cf06cec8a2e63ad519260b63f6455379f9be9f310d195af414058c31f9332ef17d102005a1d0a818609a29ee367
|
7
|
+
data.tar.gz: fe0eda37e2478952eb4589c96debca2dbb0afceb80076381cda00e983545b85b01251bb03431aae3d4dd44f6fb1bf6e4978f2e75de4b1100a1986a063f5d801e
|
@@ -50,7 +50,7 @@ module AbstractedCassandraRepository
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
def
|
53
|
+
def run_query(cql_query='', keyspace_name=nil, table_name=nil)
|
54
54
|
if keyspace_name && table_name
|
55
55
|
session = cassandra_cluster.connect(keyspace_name)
|
56
56
|
result = session.execute(cql_query)
|
@@ -20,7 +20,7 @@ class CassandraService
|
|
20
20
|
def start
|
21
21
|
# puts 'start cassandra, create cluster'
|
22
22
|
if !cassandra_cluster
|
23
|
-
|
23
|
+
cassandra_cluster = Cassandra.cluster(CassandraConfiguration::CONFIG)
|
24
24
|
end
|
25
25
|
cassandra_cluster
|
26
26
|
end
|