db-mariadb 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/db/mariadb/native/connection.rb +2 -2
- data/lib/db/mariadb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b1fb0496909a9d442eefe8576721a57eb4affee9693f9bb7c69d682546d74b2
|
4
|
+
data.tar.gz: a98067cc177c1ee492769caa3ffcae13453f913e240a71a92b71a562ed9c778c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f3fd799d28712eea7ca8e27471c515dfd18925e11204883a601f7f4a91b831477bbda99a696f50d84cc921487b0531b44771dc0cc45deb876dbefc2adf8bd4f
|
7
|
+
data.tar.gz: 36b0ea16a2b0a2249a9f731e6ddb5de6999d21f691cd1a02e764ca7ca049a1aaccbdac316cc484546e6f79ce5111ab30862bdae666ed1fbb3afe786b049060ce
|
@@ -70,7 +70,7 @@ module DB
|
|
70
70
|
end
|
71
71
|
|
72
72
|
class Connection < FFI::Pointer
|
73
|
-
def self.connect(
|
73
|
+
def self.connect(wrapper: IO, host: 'localhost', user: nil, password: nil, database: nil, port: 0, unix_socket: nil, client_flags: 0, compression: false, types: DEFAULT_TYPES, **options)
|
74
74
|
pointer = Native.mysql_init(nil)
|
75
75
|
Native.mysql_options(pointer, MYSQL_OPT_NONBLOCK, nil)
|
76
76
|
|
@@ -85,7 +85,7 @@ module DB
|
|
85
85
|
status = Native.mysql_real_connect_start(result, pointer, host, user, password, database, port, unix_socket, client_flags);
|
86
86
|
|
87
87
|
if status > 0
|
88
|
-
io =
|
88
|
+
io = wrapper.new(Native.mysql_get_socket(pointer), "r+")
|
89
89
|
|
90
90
|
while status > 0
|
91
91
|
if status & MYSQL_WAIT_READ
|
data/lib/db/mariadb/version.rb
CHANGED