swcdb 0.5.4.0 → 0.5.5.0
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: ed995e7c92c010c4fec30856935c4977ee27a7cb163810b8cfce213f17f8c129
|
4
|
+
data.tar.gz: 8e00390f74a52624d1c1d254fe8788e3bd7189c76f428af97c73bd08da9c8732
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f223c722d24efc672a56cadcacd12cc28e80db0fa4c70f27dfcdd34ae513a8a737475017f50e745e4c0ba89e3a336953916ff5cd9b4dbc2043813b4b5ca375b
|
7
|
+
data.tar.gz: 685412a2a4e391165d45680e4f8b151632b1a6dd549bd962c9542f0ea3c7c1f287bd5b6aa16f48d7c353af69a0aaae03dd33cfc338bbd4d4c71e8fa2eb645841
|
data/lib/swcdb/thrift/client.rb
CHANGED
@@ -5,27 +5,27 @@ require 'swcdb/thrift/gen/service'
|
|
5
5
|
|
6
6
|
module Swcdb
|
7
7
|
module Thrift
|
8
|
-
# The SWC-DB Thrift Client
|
8
|
+
# The SWC-DB Thrift Client
|
9
9
|
class Client < Gen::Service::Client
|
10
|
-
|
10
|
+
|
11
11
|
# SWC-DB Thrift Client initializer
|
12
12
|
#
|
13
13
|
# Example:
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
#
|
14
|
+
# ~/ # irb
|
15
|
+
# irb> require 'swcdb/thrift/client'
|
16
|
+
# irb> client = Swcdb::Thrift::Client.new("localhost", 18000)
|
17
|
+
# irb> schemas = client.sql_list_columns("get columns 1,2,3,4")
|
18
18
|
#
|
19
19
|
# Arguments:
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
20
|
+
# @param [String] host
|
21
|
+
# @param [Integer] port
|
22
|
+
# @param [Integer] timeout_ms
|
23
|
+
# @param [Boolean] do_open
|
24
|
+
# @param [Boolean] framed
|
25
|
+
# @param [Boolean] accelerated
|
26
26
|
def initialize(host, port, timeout_ms = 900000, do_open = true, framed = true, accelerated = true)
|
27
27
|
socket = ::Thrift::Socket.new(host, port, timeout_ms)
|
28
|
-
|
28
|
+
|
29
29
|
if framed
|
30
30
|
@transport = ::Thrift::FramedTransport.new(socket)
|
31
31
|
else
|
@@ -34,15 +34,15 @@ module Swcdb
|
|
34
34
|
|
35
35
|
if accelerated
|
36
36
|
protocol = ::Thrift::BinaryProtocolAccelerated.new(@transport)
|
37
|
-
else
|
37
|
+
else
|
38
38
|
protocol = ::Thrift::BinaryProtocol.new(@transport)
|
39
39
|
end
|
40
40
|
|
41
41
|
super(protocol)
|
42
|
-
|
42
|
+
|
43
43
|
open() if do_open
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
# Open Client Connection
|
47
47
|
def open()
|
48
48
|
@transport.open()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swcdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Kashirin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thrift
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.14.2
|
27
|
-
description: The SWC-DB
|
27
|
+
description: The SWC-DB Ruby module 'swcdb'
|
28
28
|
email: kashirin.alex@gmail.com
|
29
29
|
executables: []
|
30
30
|
extensions: []
|
@@ -42,8 +42,10 @@ licenses:
|
|
42
42
|
metadata:
|
43
43
|
source_code_uri: https://github.com/kashirin-alex/swc-db
|
44
44
|
bug_tracker_uri: https://github.com/kashirin-alex/swc-db/issues
|
45
|
-
changelog_uri: https://github.com/kashirin-alex/swc-db/
|
45
|
+
changelog_uri: https://github.com/kashirin-alex/swc-db/blob/master/CHANGELOG.md
|
46
46
|
homepage_uri: https://www.swcdb.org
|
47
|
+
documentation_uri: https://www.swcdb.org/use/thriftclient/ruby/
|
48
|
+
github_repo: ssh://github.com/kashirin-alex/swc-db
|
47
49
|
post_install_message:
|
48
50
|
rdoc_options:
|
49
51
|
- "--charset=UTF-8"
|