mysql2 0.3.17 → 0.3.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +34 -19
- data/ext/mysql2/client.c +64 -61
- data/ext/mysql2/extconf.rb +99 -35
- data/ext/mysql2/result.c +51 -65
- data/ext/mysql2/result.h +1 -2
- data/lib/mysql2/client.rb +4 -0
- data/lib/mysql2/em.rb +10 -1
- data/lib/mysql2/error.rb +1 -1
- data/lib/mysql2/version.rb +1 -1
- data/lib/mysql2.rb +23 -0
- data/spec/em/em_spec.rb +21 -0
- data/spec/mysql2/client_spec.rb +52 -28
- data/spec/mysql2/result_spec.rb +16 -7
- data/support/libmysql.def +219 -0
- metadata +6 -19
- data/MIT-LICENSE +0 -20
@@ -0,0 +1,219 @@
|
|
1
|
+
; MySQL's Connector/C ships with a libmysql.dll main library and libmysql.lib
|
2
|
+
; interface library. However, the interface library is not linkable by MinGW.
|
3
|
+
;
|
4
|
+
; At compile time, we generate a libmysql.a interface library with dlltool.exe.
|
5
|
+
;
|
6
|
+
; This def file can be re-generated using the reimp.exe or gendef.exe tools.
|
7
|
+
;
|
8
|
+
LIBRARY libmysql.dll
|
9
|
+
EXPORTS
|
10
|
+
mysql_affected_rows
|
11
|
+
mysql_affected_rows@4
|
12
|
+
mysql_change_user
|
13
|
+
mysql_change_user@16
|
14
|
+
mysql_character_set_name
|
15
|
+
mysql_character_set_name@4
|
16
|
+
mysql_close
|
17
|
+
mysql_close@4
|
18
|
+
mysql_data_seek
|
19
|
+
mysql_data_seek@12
|
20
|
+
mysql_debug
|
21
|
+
mysql_debug@4
|
22
|
+
mysql_dump_debug_info
|
23
|
+
mysql_dump_debug_info@4
|
24
|
+
mysql_eof
|
25
|
+
mysql_eof@4
|
26
|
+
mysql_errno
|
27
|
+
mysql_errno@4
|
28
|
+
mysql_error
|
29
|
+
mysql_error@4
|
30
|
+
mysql_escape_string
|
31
|
+
mysql_escape_string@12
|
32
|
+
mysql_fetch_field
|
33
|
+
mysql_fetch_field@4
|
34
|
+
mysql_fetch_field_direct
|
35
|
+
mysql_fetch_field_direct@8
|
36
|
+
mysql_fetch_fields
|
37
|
+
mysql_fetch_fields@4
|
38
|
+
mysql_fetch_lengths
|
39
|
+
mysql_fetch_lengths@4
|
40
|
+
mysql_fetch_row
|
41
|
+
mysql_fetch_row@4
|
42
|
+
mysql_field_count
|
43
|
+
mysql_field_count@4
|
44
|
+
mysql_field_seek
|
45
|
+
mysql_field_seek@8
|
46
|
+
mysql_field_tell
|
47
|
+
mysql_field_tell@4
|
48
|
+
mysql_free_result
|
49
|
+
mysql_free_result@4
|
50
|
+
mysql_get_client_info
|
51
|
+
mysql_get_client_info@0
|
52
|
+
mysql_get_client_version
|
53
|
+
mysql_get_client_version@0
|
54
|
+
mysql_get_host_info
|
55
|
+
mysql_get_host_info@4
|
56
|
+
mysql_get_option
|
57
|
+
mysql_get_option@12
|
58
|
+
mysql_get_proto_info
|
59
|
+
mysql_get_proto_info@4
|
60
|
+
mysql_get_server_info
|
61
|
+
mysql_get_server_info@4
|
62
|
+
mysql_get_server_version
|
63
|
+
mysql_get_server_version@4
|
64
|
+
mysql_get_ssl_cipher
|
65
|
+
mysql_get_ssl_cipher@4
|
66
|
+
mysql_hex_string
|
67
|
+
mysql_hex_string@12
|
68
|
+
mysql_info
|
69
|
+
mysql_info@4
|
70
|
+
mysql_init
|
71
|
+
mysql_init@4
|
72
|
+
mysql_insert_id
|
73
|
+
mysql_insert_id@4
|
74
|
+
mysql_kill
|
75
|
+
mysql_kill@8
|
76
|
+
mysql_library_end
|
77
|
+
mysql_library_end@0
|
78
|
+
mysql_library_init
|
79
|
+
mysql_library_init@12
|
80
|
+
mysql_list_dbs
|
81
|
+
mysql_list_dbs@8
|
82
|
+
mysql_list_fields
|
83
|
+
mysql_list_fields@12
|
84
|
+
mysql_list_processes
|
85
|
+
mysql_list_processes@4
|
86
|
+
mysql_list_tables
|
87
|
+
mysql_list_tables@8
|
88
|
+
mysql_more_results
|
89
|
+
mysql_more_results@4
|
90
|
+
mysql_next_result
|
91
|
+
mysql_next_result@4
|
92
|
+
mysql_num_fields
|
93
|
+
mysql_num_fields@4
|
94
|
+
mysql_num_rows
|
95
|
+
mysql_num_rows@4
|
96
|
+
mysql_options
|
97
|
+
mysql_options@12
|
98
|
+
mysql_options4
|
99
|
+
mysql_options4@16
|
100
|
+
mysql_ping
|
101
|
+
mysql_ping@4
|
102
|
+
mysql_query
|
103
|
+
mysql_query@8
|
104
|
+
mysql_read_query_result
|
105
|
+
mysql_read_query_result@4
|
106
|
+
mysql_real_connect
|
107
|
+
mysql_real_connect@32
|
108
|
+
mysql_real_escape_string
|
109
|
+
mysql_real_escape_string@16
|
110
|
+
mysql_real_query
|
111
|
+
mysql_real_query@12
|
112
|
+
mysql_refresh
|
113
|
+
mysql_refresh@8
|
114
|
+
mysql_reset_connection
|
115
|
+
mysql_reset_connection@4
|
116
|
+
mysql_rollback
|
117
|
+
mysql_rollback@4
|
118
|
+
mysql_row_seek
|
119
|
+
mysql_row_seek@8
|
120
|
+
mysql_row_tell
|
121
|
+
mysql_row_tell@4
|
122
|
+
mysql_select_db
|
123
|
+
mysql_select_db@8
|
124
|
+
mysql_send_query
|
125
|
+
mysql_send_query@12
|
126
|
+
mysql_server_end
|
127
|
+
mysql_server_end@0
|
128
|
+
mysql_server_init
|
129
|
+
mysql_server_init@12
|
130
|
+
mysql_session_track_get_first
|
131
|
+
mysql_session_track_get_first@16
|
132
|
+
mysql_session_track_get_next
|
133
|
+
mysql_session_track_get_next@16
|
134
|
+
mysql_set_character_set
|
135
|
+
mysql_set_character_set@8
|
136
|
+
mysql_set_local_infile_default
|
137
|
+
mysql_set_local_infile_default@4
|
138
|
+
mysql_set_local_infile_handler
|
139
|
+
mysql_set_local_infile_handler@24
|
140
|
+
mysql_set_server_option
|
141
|
+
mysql_set_server_option@8
|
142
|
+
mysql_shutdown
|
143
|
+
mysql_shutdown@8
|
144
|
+
mysql_sqlstate
|
145
|
+
mysql_sqlstate@4
|
146
|
+
mysql_ssl_set
|
147
|
+
mysql_ssl_set@24
|
148
|
+
mysql_stat
|
149
|
+
mysql_stat@4
|
150
|
+
mysql_stmt_affected_rows
|
151
|
+
mysql_stmt_affected_rows@4
|
152
|
+
mysql_stmt_attr_get
|
153
|
+
mysql_stmt_attr_get@12
|
154
|
+
mysql_stmt_attr_set
|
155
|
+
mysql_stmt_attr_set@12
|
156
|
+
mysql_stmt_bind_param
|
157
|
+
mysql_stmt_bind_param@8
|
158
|
+
mysql_stmt_bind_result
|
159
|
+
mysql_stmt_bind_result@8
|
160
|
+
mysql_stmt_close
|
161
|
+
mysql_stmt_close@4
|
162
|
+
mysql_stmt_data_seek
|
163
|
+
mysql_stmt_data_seek@12
|
164
|
+
mysql_stmt_errno
|
165
|
+
mysql_stmt_errno@4
|
166
|
+
mysql_stmt_error
|
167
|
+
mysql_stmt_error@4
|
168
|
+
mysql_stmt_execute
|
169
|
+
mysql_stmt_execute@4
|
170
|
+
mysql_stmt_fetch
|
171
|
+
mysql_stmt_fetch@4
|
172
|
+
mysql_stmt_fetch_column
|
173
|
+
mysql_stmt_fetch_column@16
|
174
|
+
mysql_stmt_field_count
|
175
|
+
mysql_stmt_field_count@4
|
176
|
+
mysql_stmt_free_result
|
177
|
+
mysql_stmt_free_result@4
|
178
|
+
mysql_stmt_init
|
179
|
+
mysql_stmt_init@4
|
180
|
+
mysql_stmt_insert_id
|
181
|
+
mysql_stmt_insert_id@4
|
182
|
+
mysql_stmt_next_result
|
183
|
+
mysql_stmt_next_result@4
|
184
|
+
mysql_stmt_num_rows
|
185
|
+
mysql_stmt_num_rows@4
|
186
|
+
mysql_stmt_param_count
|
187
|
+
mysql_stmt_param_count@4
|
188
|
+
mysql_stmt_param_metadata
|
189
|
+
mysql_stmt_param_metadata@4
|
190
|
+
mysql_stmt_prepare
|
191
|
+
mysql_stmt_prepare@12
|
192
|
+
mysql_stmt_reset
|
193
|
+
mysql_stmt_reset@4
|
194
|
+
mysql_stmt_result_metadata
|
195
|
+
mysql_stmt_result_metadata@4
|
196
|
+
mysql_stmt_row_seek
|
197
|
+
mysql_stmt_row_seek@8
|
198
|
+
mysql_stmt_row_tell
|
199
|
+
mysql_stmt_row_tell@4
|
200
|
+
mysql_stmt_send_long_data
|
201
|
+
mysql_stmt_send_long_data@16
|
202
|
+
mysql_stmt_sqlstate
|
203
|
+
mysql_stmt_sqlstate@4
|
204
|
+
mysql_stmt_store_result
|
205
|
+
mysql_stmt_store_result@4
|
206
|
+
mysql_store_result
|
207
|
+
mysql_store_result@4
|
208
|
+
mysql_thread_end
|
209
|
+
mysql_thread_end@0
|
210
|
+
mysql_thread_id
|
211
|
+
mysql_thread_id@4
|
212
|
+
mysql_thread_init
|
213
|
+
mysql_thread_init@0
|
214
|
+
mysql_thread_safe
|
215
|
+
mysql_thread_safe@0
|
216
|
+
mysql_use_result
|
217
|
+
mysql_use_result@4
|
218
|
+
mysql_warning_count
|
219
|
+
mysql_warning_count@4
|
metadata
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Lopez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: eventmachine
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '>='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - '>='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rake-compiler
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
17
|
- - ~>
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
19
|
+
version: 0.9.5
|
34
20
|
type: :development
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
24
|
- - ~>
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
26
|
+
version: 0.9.5
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,7 +59,7 @@ extensions:
|
|
73
59
|
- ext/mysql2/extconf.rb
|
74
60
|
extra_rdoc_files: []
|
75
61
|
files:
|
76
|
-
-
|
62
|
+
- LICENSE
|
77
63
|
- README.md
|
78
64
|
- ext/mysql2/client.c
|
79
65
|
- ext/mysql2/client.h
|
@@ -94,6 +80,7 @@ files:
|
|
94
80
|
- lib/mysql2/error.rb
|
95
81
|
- lib/mysql2/result.rb
|
96
82
|
- lib/mysql2/version.rb
|
83
|
+
- support/libmysql.def
|
97
84
|
- support/mysql_enc_to_ruby.rb
|
98
85
|
- support/ruby_enc_to_mysql.rb
|
99
86
|
- examples/eventmachine.rb
|
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2010-2011 Brian Lopez - http://github.com/brianmario
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|