dmRuby 1.0.3 → 1.0.4
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.
- checksums.yaml +4 -4
- data/ChangeLogs.md +36 -28
- data/dm.gemspec +29 -29
- data/ext/client.c +548 -540
- data/ext/result.c +1065 -1065
- data/ext/statement.c +663 -663
- data/lib/dm/client.rb +3 -1
- data/lib/dm/version.rb +5 -5
- metadata +3 -3
data/lib/dm/client.rb
CHANGED
@@ -24,13 +24,15 @@ module Dm
|
|
24
24
|
user = opts[:username] || opts[:user]
|
25
25
|
pass = opts[:password] || opts[:pass]
|
26
26
|
server = opts[:server] || opts[:host]
|
27
|
+
schema = opts[:schema]
|
27
28
|
|
28
29
|
# Correct the data types before passing these values down to the C level
|
29
30
|
user = user.to_s unless user.nil?
|
30
31
|
pass = pass.to_s unless pass.nil?
|
31
32
|
server = server.to_s unless server.nil?
|
33
|
+
schema = schema.to_s unless schema.nil?
|
32
34
|
self.charset_name = opts[:encoding] || 1
|
33
|
-
connect user, pass, server
|
35
|
+
connect user, pass, server, schema
|
34
36
|
end
|
35
37
|
|
36
38
|
def query(sql, options = {})
|
data/lib/dm/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Dm
|
4
|
-
VERSION = "1.0.
|
5
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Dm
|
4
|
+
VERSION = "1.0.4"
|
5
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dmRuby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sunbiao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bigdecimal
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.5.
|
86
|
+
rubygems_version: 3.5.11
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: A simple, fast DM library for Ruby, binding to dmdpi
|