mysql 2.8.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +56 -0
- data/COPYING.ja +51 -0
- data/History.txt +12 -0
- data/Manifest.txt +16 -0
- data/README.txt +23 -0
- data/Rakefile +22 -0
- data/ext/mysql_api/extconf.rb +98 -0
- data/ext/mysql_api/mysql.c +2273 -0
- data/extra/README.html +1098 -0
- data/extra/README_ja.html +1323 -0
- data/extra/tommy.css +134 -0
- data/lib/1.8/mysql_api.so +0 -0
- data/lib/1.9/mysql_api.so +0 -0
- data/lib/mysql.rb +16 -0
- data/tasks/gem.rake +24 -0
- data/tasks/native.rake +30 -0
- data/tasks/vendor_mysql.rake +41 -0
- data/test/test_mysql.rb +1488 -0
- metadata +100 -0
@@ -0,0 +1,1323 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<!-- $Id: README_ja.html 244 2009-02-01 08:43:39Z tommy $ -->
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="content-style-type" content="text/css">
|
6
|
+
<link rel=stylesheet type="text/css" href="tommy.css">
|
7
|
+
<link rev=made href="mailto:tommy@tmtm.org">
|
8
|
+
<title>MySQL/Ruby</title>
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
<h1>MySQL/Ruby</h1>
|
13
|
+
<p><a href="README.html">[English]</a></p>
|
14
|
+
<hr>
|
15
|
+
<p>
|
16
|
+
����� <a href="http://www.mysql.com">MySQL</a> �� Ruby API �Ǥ���MySQL �� C API �Ȥۤ�Ʊ���ε�ǽ������ޤ���
|
17
|
+
</p>
|
18
|
+
|
19
|
+
<h2>�����������</h2>
|
20
|
+
<a href="http://tmtm.org/downloads/mysql/ruby/">tmtm.org</a>
|
21
|
+
|
22
|
+
<h2>ɬ�פʤ��</h2>
|
23
|
+
<ul>
|
24
|
+
<li>MySQL 5.0.67
|
25
|
+
<li>Ruby 1.8.7, 1.9.1
|
26
|
+
</ul>
|
27
|
+
<p>
|
28
|
+
�����ʳ��Ǥ� make �Ǥ��뤫�⤷��ޤ�����ǧ���Ƥޤ���
|
29
|
+
</p>
|
30
|
+
|
31
|
+
<h2>�饤����</h2>
|
32
|
+
<p>
|
33
|
+
���Υץ������� <a href="http://www.ruby-lang.org/ja/LICENSE.txt">Ruby �饤����</a> �˽����ޤ���
|
34
|
+
</p>
|
35
|
+
|
36
|
+
<h2>���ȡ���</h2>
|
37
|
+
<p>
|
38
|
+
����¹Ԥ��Ƥ���������
|
39
|
+
</p>
|
40
|
+
<pre class="code">
|
41
|
+
% ruby extconf.rb
|
42
|
+
</pre>
|
43
|
+
<p>
|
44
|
+
�ޤ���
|
45
|
+
</p>
|
46
|
+
<pre class="code">
|
47
|
+
% ruby extconf.rb --with-mysql-dir=/usr/local/mysql
|
48
|
+
</pre>
|
49
|
+
<p>
|
50
|
+
�ޤ���
|
51
|
+
</p>
|
52
|
+
<pre clas="code">
|
53
|
+
% ruby extconf.rb --with-mysql-config
|
54
|
+
</pre>
|
55
|
+
<p>
|
56
|
+
���줫��
|
57
|
+
</p>
|
58
|
+
<pre>
|
59
|
+
% make
|
60
|
+
</pre>
|
61
|
+
<p>
|
62
|
+
extconf.rb �ˤϼ��Υ��ץ��������Ǥ��ޤ���
|
63
|
+
</p>
|
64
|
+
<dl>
|
65
|
+
<dt>--with-mysql-include=<i>dir</i>
|
66
|
+
<dd>
|
67
|
+
MySQL �Τإå��ե�����ξ��Ȥ��� /usr/local/include ������Υǥ��쥯�ȥ����ꤷ�ޤ���
|
68
|
+
|
69
|
+
<dt>--with-mysql-lib=<i>dir</i>
|
70
|
+
<dd>
|
71
|
+
MySQL �Υ饤�֥��ξ��Ȥ��� /usr/local/lib ������Υǥ��쥯�ȥ����ꤷ�ޤ���
|
72
|
+
|
73
|
+
<dt>--with-mysql-dir=<i>dir</i>
|
74
|
+
<dd>--with-mysql-include=<i>dir</i>/include, --with-mysql-lib=<i>dir</i>/lib ��Ʊ���Ǥ���
|
75
|
+
|
76
|
+
<dt>--with-mysql-config[=<i>/path/to/mysql_config</i>]
|
77
|
+
<dd>mysql_config ���ޥ�ɤη�̤��饳��ѥ���ѥ��������ޤ���
|
78
|
+
</dl>
|
79
|
+
<p>
|
80
|
+
���Ǵ�ñ�ʥƥ��Ȥ��Ǥ��ޤ���
|
81
|
+
</p>
|
82
|
+
<pre class="code">
|
83
|
+
% ruby ./test.rb -- [<i>hostname</i> [<i>user</i> [<i>passwd</i> [<i>dbname</i> [<i>port</i> [<i>socket</i> [<i>flag</i>]]]]]]]
|
84
|
+
</pre>
|
85
|
+
|
86
|
+
<p>
|
87
|
+
test.rb ��Ϳ��������� Mysql.real_connect() �ΰ�����Ʊ���Ǥ���
|
88
|
+
</p>
|
89
|
+
<p>
|
90
|
+
����ʤ���С������ѡ��桼���ǥ��ȡ��뤷�Ƥ���������
|
91
|
+
</p>
|
92
|
+
<pre class="code">
|
93
|
+
# make install
|
94
|
+
</pre>
|
95
|
+
|
96
|
+
<h3>����</h3>
|
97
|
+
<p>
|
98
|
+
�ƥ��Ȼ��˥饤�֥�� libmysqlclient �����Ĥ���ʤ��Ȥ������顼���Ф���ϡ�make ���˥饤�֥��ξ�����ꤹ��ɬ�פ�����ޤ������Τ褦�ˤ��� make ���ƤߤƤ���������
|
99
|
+
</p>
|
100
|
+
<pre class="code">
|
101
|
+
% env LD_RUN_PATH=<i>libmysqlclient.so��</i> make
|
102
|
+
</pre>
|
103
|
+
<p>
|
104
|
+
test.rb �� Linux ��Ǥ�ư�����ǧ���Ƥ��ޤ���
|
105
|
+
¾�Υץ�åȥե�����Ǥϥ��顼���Ф뤫�⤷��ޤ���
|
106
|
+
</p>
|
107
|
+
|
108
|
+
<h2>�Ȥ���</h2>
|
109
|
+
<p>
|
110
|
+
��å�̾�� C API �δؿ����� mysql_ ��Ƭ�����������Τ�Ʊ���Ǥ�����åɤλ�����ˡ�����Ū���б����� C API �ؿ���Ʊ�ͤǤ��Τǡ��ܺ٤� MySQL �Υޥ˥奢��Ƥ���������
|
111
|
+
</p>
|
112
|
+
<p>
|
113
|
+
��å���ǥ��顼��ȯ���������� Mysql::Error �㳰��ȯ�����ޤ���
|
114
|
+
</p>
|
115
|
+
<p>
|
116
|
+
�ä˰�̣�Τ����ͤ��֤��ʤ��ؿ��� self ���֤��ޤ���
|
117
|
+
</p>
|
118
|
+
|
119
|
+
<h2>Mysql ���饹</h2>
|
120
|
+
<p>
|
121
|
+
MySQL �����뤿��Υ��饹�Ǥ���
|
122
|
+
</p>
|
123
|
+
|
124
|
+
<h3>���饹��å�</h3>
|
125
|
+
<dl>
|
126
|
+
<dt>init()
|
127
|
+
<dd>
|
128
|
+
<p>
|
129
|
+
Mysql ���饹���֥������Ȥ��֤��ޤ���mysqld ����³�Ϥ��ޤ���
|
130
|
+
Mysql#options() ��ɬ�פʾ��ϡ������Ƥ����˹Ԥʤ��ޤ���
|
131
|
+
</p>
|
132
|
+
|
133
|
+
<dt>real_connect(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
|
134
|
+
<dt>connect(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
|
135
|
+
<dt>new(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
|
136
|
+
<dd>
|
137
|
+
<p>
|
138
|
+
mysqld ����³����Mysql ���饹���֥������Ȥ��֤��ޤ���
|
139
|
+
flag ������� C API �Τ�Τ�Ʊ���Ǥ���
|
140
|
+
</p>
|
141
|
+
<p>
|
142
|
+
��) Mysql::CLIENT_FOUND_ROWS
|
143
|
+
</p>
|
144
|
+
|
145
|
+
<dt>escape_string(str)
|
146
|
+
<dt>quote(str)
|
147
|
+
<dd>
|
148
|
+
<p>
|
149
|
+
insert, update �Ѥ�ʸ��������Ȥ��ޤ���
|
150
|
+
</p>
|
151
|
+
|
152
|
+
<dt>get_client_info()
|
153
|
+
<dt>client_info()
|
154
|
+
<dd>
|
155
|
+
<p>
|
156
|
+
���饤����ȥС����������ʸ������֤��ޤ���
|
157
|
+
</p>
|
158
|
+
|
159
|
+
<dt>get_client_version()
|
160
|
+
<dt>client_version()
|
161
|
+
<dd>
|
162
|
+
<p>
|
163
|
+
���饤����ȥС������������ͤ��֤��ޤ���
|
164
|
+
</p>
|
165
|
+
|
166
|
+
<dt>debug(str)
|
167
|
+
<dd>
|
168
|
+
<p>
|
169
|
+
C API mysql_debug() ��Ʊ����
|
170
|
+
</p>
|
171
|
+
</dl>
|
172
|
+
|
173
|
+
<h3>���֥������ȥ�å�</h3>
|
174
|
+
<dl>
|
175
|
+
<dt>options(opt, val=nil)
|
176
|
+
<dd>
|
177
|
+
<p>
|
178
|
+
C API �� mysql_options() ��Ʊ���Ǥ���
|
179
|
+
opt �˻��ꤹ������� C API ���� MYSQL_ ��Ƭ�������������ΤǤ���
|
180
|
+
</p>
|
181
|
+
<p>
|
182
|
+
��) Mysql::OPT_CONNECT_TIMEOUT
|
183
|
+
</p>
|
184
|
+
|
185
|
+
<dt>real_connect(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
|
186
|
+
<dt>connect(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
|
187
|
+
<dd>
|
188
|
+
<p>
|
189
|
+
Mysql.real_connect() ��Ʊ���Ǥ���Mysql.init() �������������֥������Ȥ��Ф���³���뤿��˻��Ѥ��ޤ���
|
190
|
+
</p>
|
191
|
+
|
192
|
+
<dt>affected_rows()
|
193
|
+
<dd>
|
194
|
+
<p>
|
195
|
+
�ƶ����줿�Կ����֤��ޤ���
|
196
|
+
</p>
|
197
|
+
|
198
|
+
<dt>autocommit(mode)
|
199
|
+
<dd>
|
200
|
+
<p>
|
201
|
+
autocommit �⡼�ɤ� mode �����ꤷ�ޤ���mode �� nil, false, 0 �λ��ϥ��ա�����ʳ��ξ��ϥ���Ǥ���
|
202
|
+
</p>
|
203
|
+
|
204
|
+
<dt>change_user(user=nil, passwd=nil, db=nil)
|
205
|
+
<dd>
|
206
|
+
<p>
|
207
|
+
��³�桼�����ѹ����ޤ���
|
208
|
+
</p>
|
209
|
+
|
210
|
+
<dt>character_set_name()
|
211
|
+
<dd>
|
212
|
+
<p>
|
213
|
+
���ߤ�ʸ�����åȤ��֤��ޤ���
|
214
|
+
</p>
|
215
|
+
|
216
|
+
<dt>close()
|
217
|
+
<dd>
|
218
|
+
<p>
|
219
|
+
��³�����Ǥ��ޤ���
|
220
|
+
</p>
|
221
|
+
|
222
|
+
<dt>commit()
|
223
|
+
<dd>
|
224
|
+
<p>
|
225
|
+
�ȥ�������ߥåȤ��ޤ���
|
226
|
+
</p>
|
227
|
+
|
228
|
+
<dt>create_db(db)
|
229
|
+
<dd>
|
230
|
+
<p>
|
231
|
+
�ǡ����١�����������ޤ���
|
232
|
+
</p>
|
233
|
+
|
234
|
+
<dt>drop_db(db)
|
235
|
+
<dd>
|
236
|
+
<p>
|
237
|
+
�ǡ����١������˴����ޤ���
|
238
|
+
</p>
|
239
|
+
|
240
|
+
<dt>dump_debug_info()
|
241
|
+
<dd>
|
242
|
+
<p>
|
243
|
+
C API mysql_dump_debug_info() ��Ʊ����
|
244
|
+
</p>
|
245
|
+
|
246
|
+
<dt>errno()
|
247
|
+
<dd>
|
248
|
+
<p>
|
249
|
+
���顼�ֹ���֤��ޤ���
|
250
|
+
</p>
|
251
|
+
|
252
|
+
<dt>error()
|
253
|
+
<dd>
|
254
|
+
<p>
|
255
|
+
���顼��å��������֤��ޤ���
|
256
|
+
</p>
|
257
|
+
|
258
|
+
<dt>escape_string(str)
|
259
|
+
<dt>quote(str)
|
260
|
+
<dd>
|
261
|
+
<p>
|
262
|
+
insert, update �Ѥ�ʸ��������Ȥ��ޤ���
|
263
|
+
C API �� mysql_real_escape_string() ��Ʊ����
|
264
|
+
</p>
|
265
|
+
|
266
|
+
<dt>field_count()
|
267
|
+
<dd>
|
268
|
+
<p>
|
269
|
+
�Ǹ�˼¹Ԥ��줿������ι��ܿ����֤��ޤ���
|
270
|
+
</p>
|
271
|
+
|
272
|
+
<dt>get_client_info()
|
273
|
+
<dt>client_info()
|
274
|
+
<dd>
|
275
|
+
<p>
|
276
|
+
���饤����ȥС����������ʸ������֤��ޤ���
|
277
|
+
</p>
|
278
|
+
|
279
|
+
<dt>get_client_version()
|
280
|
+
<dt>client_version()
|
281
|
+
<dd>
|
282
|
+
<p>
|
283
|
+
���饤����ȥС������������ͤ��֤��ޤ���
|
284
|
+
</p>
|
285
|
+
|
286
|
+
<dt>get_host_info()
|
287
|
+
<dt>host_info()
|
288
|
+
<dd>
|
289
|
+
<p>
|
290
|
+
��³�����ʸ������֤��ޤ���
|
291
|
+
</p>
|
292
|
+
|
293
|
+
<dt>get_proto_info()
|
294
|
+
<dt>proto_info()
|
295
|
+
<dd>
|
296
|
+
<p>
|
297
|
+
��³�ץ��ȥ���С���������ͤ��֤��ޤ���
|
298
|
+
</p>
|
299
|
+
|
300
|
+
<dt>get_server_info()
|
301
|
+
<dt>server_info()
|
302
|
+
<dd>
|
303
|
+
<p>
|
304
|
+
�����ФΥС����������ʸ������֤��ޤ���
|
305
|
+
</p>
|
306
|
+
|
307
|
+
<dt>get_server_version()
|
308
|
+
<dt>server_version()
|
309
|
+
<dd>
|
310
|
+
<p>
|
311
|
+
�����ФΥС������������ͤ��֤��ޤ���
|
312
|
+
</p>
|
313
|
+
|
314
|
+
<dt>info()
|
315
|
+
<dd>
|
316
|
+
<p>
|
317
|
+
ľ���Υ�����ξ����ʸ������֤��ޤ����ä˾��ʤ���� nil ���֤�ޤ���
|
318
|
+
</p>
|
319
|
+
|
320
|
+
<dt>insert_id()
|
321
|
+
<dd>
|
322
|
+
<p>
|
323
|
+
�Ǹ���������줿 AUTO_INCREMENT ���ܤ��ͤ��֤��ޤ���
|
324
|
+
</p>
|
325
|
+
|
326
|
+
<dt>kill(id)
|
327
|
+
<dd>
|
328
|
+
<p>
|
329
|
+
id �ǻ��ꤷ������åɤ��ޤ���
|
330
|
+
</p>
|
331
|
+
|
332
|
+
<dt>list_dbs(db=nil)
|
333
|
+
<dd>
|
334
|
+
<p>
|
335
|
+
�ǡ����١����ΰ�����������֤��ޤ���
|
336
|
+
</p>
|
337
|
+
|
338
|
+
<dt>list_fields(table, field=nil)
|
339
|
+
<dd>
|
340
|
+
<p>
|
341
|
+
�ơ��֥���ι��ܾ���ΰ����� Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
342
|
+
</p>
|
343
|
+
|
344
|
+
<dt>list_processes()
|
345
|
+
<dd>
|
346
|
+
<p>
|
347
|
+
�����о�θ��ߤΥ���åɤΰ����� Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
348
|
+
</p>
|
349
|
+
|
350
|
+
<dt>list_tables(table=nil)
|
351
|
+
<dd>
|
352
|
+
<p>
|
353
|
+
�ơ��֥�ΰ�����������֤��ޤ���
|
354
|
+
</p>
|
355
|
+
|
356
|
+
<dt>more_results?()
|
357
|
+
<dd>
|
358
|
+
<p>
|
359
|
+
�������Ƥ��ʤ��������̤�������Ͽ����֤��ޤ���
|
360
|
+
</p>
|
361
|
+
|
362
|
+
<dt>next_result()
|
363
|
+
<dd>
|
364
|
+
<p>
|
365
|
+
�������Ƥ��ʤ��������̤�������Ͽ����֤��ޤ���
|
366
|
+
���θ�� store_result() ��¹Ԥ���ȥ������̤�����Ǥ��ޤ���
|
367
|
+
</p>
|
368
|
+
|
369
|
+
<dt>ping()
|
370
|
+
<dd>
|
371
|
+
<p>
|
372
|
+
�����Ф������Ƥ��뤫�ɤ���������å����ޤ���
|
373
|
+
</p>
|
374
|
+
|
375
|
+
<dt>prepare(q)
|
376
|
+
<dd>
|
377
|
+
<p>
|
378
|
+
��������Ф�����ޤ������λ����ǤϤޤ��¹Ԥ���ޤ���
|
379
|
+
Mysql::Stmt ���饹���֥������Ȥ��֤��ޤ���
|
380
|
+
</p>
|
381
|
+
<p>
|
382
|
+
Mysql#stmt_init.prepare(q) ��Ʊ���Ǥ���
|
383
|
+
</p>
|
384
|
+
|
385
|
+
<dt>query(q)
|
386
|
+
<dt>real_query(q)
|
387
|
+
<dd>
|
388
|
+
<p>
|
389
|
+
�������¹Ԥ��ޤ���
|
390
|
+
�����꤬��̤��֤���硢��ưŪ�� store_result() ��¹Ԥ��ơ�Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
391
|
+
query_with_result �� false �����ꤵ��Ƥ���С�store_result() �ϼ¹Ԥ��ޤ���
|
392
|
+
</p>
|
393
|
+
|
394
|
+
<dt>query(q) {|res| ...}
|
395
|
+
<dt>real_query(q) {|res| ...}
|
396
|
+
<dd>
|
397
|
+
<p>
|
398
|
+
�������¹Ԥ��ޤ���
|
399
|
+
�����꤬��̤��֤���硢Mysql::Result ���֥������Ȥ�����Ȥ��ƥ֥��å���¹Ԥ��ޤ���
|
400
|
+
�֥��å���λ���� Mysql::Result ���֥������Ȥϲ�������ޤ���
|
401
|
+
�ޥ�����ơ��ȥ��ȥ⡼�ɤǡ������ˡ�;�פǶ��ڤ�줿ʣ���Υ��������ꤷ�����ϡ�������ο������֥��å����֤��ޤ���
|
402
|
+
</p>
|
403
|
+
<p>
|
404
|
+
MySQL/Ruby 2.8 ����ϡ���ưŪ�˥ޥ�����ơ��ȥ��ȥ⡼�ɤˤϤʤ�ʤ��ʤ�ޤ�����
|
405
|
+
Mysql.connect �� flag �� Mysql::CLIENT_MULTI_STATEMENTS ����ꤹ�뤫��Mysql#set_server_option(Mysql::OPTION_MULTI_STATEMENTS_ON) ��¹Ԥ��Ƥ���������
|
406
|
+
</p>
|
407
|
+
|
408
|
+
<dt>refresh(r)
|
409
|
+
<dd>
|
410
|
+
<p>
|
411
|
+
�����ФΥ����䥭��å�������ե�å��夷�ޤ���
|
412
|
+
</p>
|
413
|
+
|
414
|
+
<dt>reload()
|
415
|
+
<dd>
|
416
|
+
<p>
|
417
|
+
�����������ơ��֥����ɤ߹��ߤ��ޤ���
|
418
|
+
</p>
|
419
|
+
|
420
|
+
<dt>rollback()
|
421
|
+
<dd>
|
422
|
+
<p>
|
423
|
+
�ȥ�������������Хå����ޤ���
|
424
|
+
</p>
|
425
|
+
|
426
|
+
<dt>select_db(db)
|
427
|
+
<dd>
|
428
|
+
<p>
|
429
|
+
�ǡ����١��������ޤ���
|
430
|
+
</p>
|
431
|
+
|
432
|
+
<dt>set_server_option(opt)
|
433
|
+
<dd>
|
434
|
+
<p>
|
435
|
+
�����ǻ��ꤷ�����ץ������Ф����ꤷ�ޤ���
|
436
|
+
�����ˤϡ�Mysql::OPTION_MULTI_STATEMENTS_ON, Mysql::OPTION_MULTI_STATEMENTS_OFF ������Ǥ��ޤ���
|
437
|
+
</p>
|
438
|
+
|
439
|
+
<dt>shutdown()
|
440
|
+
<dd>
|
441
|
+
<p>
|
442
|
+
�����Ф���ߤ��ޤ���
|
443
|
+
</p>
|
444
|
+
|
445
|
+
<dt>ssl_set(key=nil, cert=nil, ca=nil, capath=nil, cipher=nil)
|
446
|
+
<dd>
|
447
|
+
<p>
|
448
|
+
SSL��³����Ѥ��ޤ���Mysql.init() �塢Mysql#connect() ���˹Ԥʤ�ɬ�פ�����ޤ���
|
449
|
+
</p>
|
450
|
+
|
451
|
+
<dt>stat()
|
452
|
+
<dd>
|
453
|
+
<p>
|
454
|
+
�����Фξ��֤�ʸ������֤��ޤ���
|
455
|
+
</p>
|
456
|
+
|
457
|
+
<dt>stmt_init()
|
458
|
+
<dd>
|
459
|
+
<p>
|
460
|
+
Mysql::Stmt ���饹���֥������Ȥ��֤��ޤ���
|
461
|
+
</p>
|
462
|
+
|
463
|
+
<dt>store_result()
|
464
|
+
<dd>
|
465
|
+
<p>
|
466
|
+
������η�̤� Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
467
|
+
</p>
|
468
|
+
|
469
|
+
<dt>thread_id()
|
470
|
+
<dd>
|
471
|
+
<p>
|
472
|
+
���ߤ���³�Υ���å�ID���֤��ޤ���
|
473
|
+
</p>
|
474
|
+
|
475
|
+
<dt>use_result()
|
476
|
+
<dd>
|
477
|
+
<p>
|
478
|
+
������η�̤� Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
479
|
+
</p>
|
480
|
+
|
481
|
+
<dt>warning_count()
|
482
|
+
<dd>
|
483
|
+
<p>
|
484
|
+
ľ���Υ�����ηٹ�����֤��ޤ���
|
485
|
+
</p>
|
486
|
+
</dl>
|
487
|
+
|
488
|
+
<h3>���֥��������ѿ�</h3>
|
489
|
+
|
490
|
+
<dl>
|
491
|
+
<dt>query_with_result
|
492
|
+
<dd>
|
493
|
+
<p>
|
494
|
+
true �����ꤹ��� query() ���� store_result() ��¹Ԥ��ơ�Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
495
|
+
false �����ꤹ��Ȥ���ư��ϹԤ��ޤ��ǥե���Ȥ� true �Ǥ���
|
496
|
+
</p>
|
497
|
+
|
498
|
+
<dt>reconnect
|
499
|
+
<dd>
|
500
|
+
<p>
|
501
|
+
true �����ꤹ��� MySQL �����ФȤ���³���ڤ줿�Ȥ��˼�ưŪ�˺���³���ޤ���
|
502
|
+
�ǥե���Ȥ� false �Ǥ���
|
503
|
+
</p>
|
504
|
+
</dl>
|
505
|
+
|
506
|
+
<h2>Mysql::Result ���饹</h2>
|
507
|
+
<p>
|
508
|
+
�������̤Υ��饹�Ǥ���
|
509
|
+
</p>
|
510
|
+
|
511
|
+
<h3>���֥������ȥ�å�</h3>
|
512
|
+
<dl>
|
513
|
+
<dt>free()
|
514
|
+
<dd>
|
515
|
+
<p>
|
516
|
+
��̥ơ��֥��ѥ����������ޤ���
|
517
|
+
</p>
|
518
|
+
|
519
|
+
<dt>data_seek(offset)
|
520
|
+
<dd>
|
521
|
+
<p>
|
522
|
+
���ߤιԤΰ��֤� offset ���ܤιԤˤ��ޤ���
|
523
|
+
</p>
|
524
|
+
|
525
|
+
<dt>fetch_field()
|
526
|
+
<dd>
|
527
|
+
<p>
|
528
|
+
���ߤι��ܤ� Mysql::Field ���饹���֥������Ȥ��֤��ޤ���
|
529
|
+
���˸ƤФ줿���ϼ��ι��ܤ��֤��ޤ���
|
530
|
+
</p>
|
531
|
+
|
532
|
+
<dt>fetch_fields()
|
533
|
+
<dd>
|
534
|
+
<p>
|
535
|
+
�������Τ�ɽ�� Mysql::Field ���饹���֥������Ȥ�������֤��ޤ���
|
536
|
+
</p>
|
537
|
+
|
538
|
+
<dt>fetch_field_direct(fieldnr)
|
539
|
+
<dd>
|
540
|
+
<p>
|
541
|
+
fieldnr ���ܤι��ܤ� Mysql::Field ���饹���֥������Ȥ��֤��ޤ���
|
542
|
+
</p>
|
543
|
+
|
544
|
+
<dt>fetch_lengths()
|
545
|
+
<dd>
|
546
|
+
<p>
|
547
|
+
���ߤιԤγƹ����ͤ�Ĺ����������֤��ޤ���
|
548
|
+
</p>
|
549
|
+
|
550
|
+
<dt>fetch_row()
|
551
|
+
<dd>
|
552
|
+
<p>
|
553
|
+
������̤Σ��Ԥ��֤��ޤ������˸ƤФ줿���ϼ��ιԤ��֤��ޤ���
|
554
|
+
����ͤϹ����ͤ�����Ǥ���
|
555
|
+
</p>
|
556
|
+
|
557
|
+
<dt>fetch_hash(with_table=false)
|
558
|
+
<dd>
|
559
|
+
<p>
|
560
|
+
������̤Σ��Ԥ��֤��ޤ������˸ƤФ줿���ϼ��ιԤ��֤��ޤ���
|
561
|
+
����ͤϹ���̾���Ȥ��������ͤΥϥå���Ǥ���
|
562
|
+
with_table �� true �ξ��ϥ����˥ơ��֥�̾���ղä��졢"�ơ��֥�̾.����̾" �Ȥ��������Υ����ˤʤ�ޤ���
|
563
|
+
</p>
|
564
|
+
|
565
|
+
<dt>field_seek(offset)
|
566
|
+
<dd>
|
567
|
+
<p>
|
568
|
+
���ߤι��ܰ��֤� offset ���ܤι��ܤˤ��ޤ���
|
569
|
+
</p>
|
570
|
+
|
571
|
+
<dt>field_tell()
|
572
|
+
<dd>
|
573
|
+
<p>
|
574
|
+
���ߤι��ܤΰ��֤��֤��ޤ���
|
575
|
+
</p>
|
576
|
+
|
577
|
+
<dt>num_fields()
|
578
|
+
<dd>
|
579
|
+
<p>
|
580
|
+
���ܿ����֤��ޤ���
|
581
|
+
</p>
|
582
|
+
|
583
|
+
<dt>num_rows()
|
584
|
+
<dd>
|
585
|
+
<p>
|
586
|
+
����������֤��ޤ���
|
587
|
+
</p>
|
588
|
+
|
589
|
+
<dt>row_seek(offset)
|
590
|
+
<dd>
|
591
|
+
<p>
|
592
|
+
���ߤιԤΰ��֤����ꤷ�ޤ���
|
593
|
+
offset ������ɽ���� row_tell() ���֤��� Mysql::RowOffset ���饹���֥������ȤǤ���
|
594
|
+
</p>
|
595
|
+
|
596
|
+
<dt>row_tell()
|
597
|
+
<dd>
|
598
|
+
<p>
|
599
|
+
���ߤιԤΰ��֤� Mysql::RowOffset ���饹���֥������Ȥ��֤��ޤ���
|
600
|
+
</p>
|
601
|
+
</dl>
|
602
|
+
|
603
|
+
<h3>���ƥ졼��</h3>
|
604
|
+
<dl>
|
605
|
+
<dt>each() {|x| ��}
|
606
|
+
<dd>
|
607
|
+
<p>
|
608
|
+
������̤γƹԤ��Ȥ� {��} ���֤��ޤ���x �Ϲ����ͤ�����Ǥ���
|
609
|
+
</p>
|
610
|
+
|
611
|
+
<dt>each_hash(with_table=false) {|x| ��}
|
612
|
+
<dd>
|
613
|
+
<p>
|
614
|
+
������̤γƹԤ��Ȥ� {��} ���֤��ޤ���
|
615
|
+
x �Ϲ���̾���Ȥ��������ͤΥϥå���Ǥ���
|
616
|
+
with_table �� true �ξ��ϥ����˥ơ��֥�̾���ղä��졢"�ơ��֥�̾.����̾" �Ȥ��������Υ����ˤʤ�ޤ���
|
617
|
+
</p>
|
618
|
+
</dl>
|
619
|
+
|
620
|
+
<h2>Mysql::Field ���饹</h2>
|
621
|
+
<p>
|
622
|
+
���ܤξܺ٤�ɽ�����饹�Ǥ���C API �Ȱۤʤꡢ���֥������Ȥ� Mysql::Result �Ȥ���Ω����¸�ߤ���Τǡ�Mysql::Result ���饹���֥������Ȥ��������줿��Ǥ����ѤǤ��ޤ����������Τ��� C API ����������Ѥ��ޤ���
|
623
|
+
</p>
|
624
|
+
|
625
|
+
<h3>���֥��������ѿ�(�ɤ߽Ф��Τ�)</h3>
|
626
|
+
<dl>
|
627
|
+
<dt>name<dd>����̾
|
628
|
+
<dt>table<dd>�ơ��֥�̾
|
629
|
+
<dt>def<dd>�ǥե������
|
630
|
+
<dt>type<dd>���ܤη�
|
631
|
+
<dt>length<dd>���ܤ�Ĺ��
|
632
|
+
<dt>max_length<dd>���������ι����ͤκ���Ĺ
|
633
|
+
<dt>flags<dd>�ե饰
|
634
|
+
<dt>decimals<dd>���������
|
635
|
+
</dl>
|
636
|
+
<p>
|
637
|
+
type ���б���������� C API �Τ�Τ��� FIELD_ ��Ƭ�����������ΤǤ���
|
638
|
+
</p>
|
639
|
+
<p>
|
640
|
+
��) Mysql::Field::TYPE_STRING
|
641
|
+
</p>
|
642
|
+
<p>
|
643
|
+
flag ���б���������� C API �Τ�Τ�Ʊ���Ǥ���
|
644
|
+
</p>
|
645
|
+
<p>
|
646
|
+
��) Mysql::Field::BLOB_FLAG
|
647
|
+
</p>
|
648
|
+
|
649
|
+
<h3>���֥������ȥ�å�</h3>
|
650
|
+
<dl>
|
651
|
+
<dt>hash()
|
652
|
+
<dd>
|
653
|
+
<p>
|
654
|
+
�嵭���ѿ�̾���Ȥ���ϥå�����֤��ޤ���
|
655
|
+
</p>
|
656
|
+
<p>
|
657
|
+
��) obj.name == obj.hash['name']
|
658
|
+
</p>
|
659
|
+
|
660
|
+
<dt>is_not_null?()
|
661
|
+
<dd>
|
662
|
+
<p>
|
663
|
+
�ե�����ɤ� "NOT NULL" ���������Ƥ���п����֤��ޤ���
|
664
|
+
</p>
|
665
|
+
|
666
|
+
<dt>is_num?()
|
667
|
+
<dd>
|
668
|
+
<p>
|
669
|
+
�ե�����ɤ����ͤξ��Ͽ����֤��ޤ���
|
670
|
+
</p>
|
671
|
+
|
672
|
+
<dt>is_pri_key?()
|
673
|
+
<dd>
|
674
|
+
<p>
|
675
|
+
�ե�����ɤ��ץ饤�ޥꥭ���ξ��Ͽ����֤��ޤ���
|
676
|
+
</p>
|
677
|
+
|
678
|
+
<dt>inspect()
|
679
|
+
<dd>
|
680
|
+
<p>
|
681
|
+
ʸ���� "#<Mysql::Field:����̾>" ���֤��ޤ���
|
682
|
+
</p>
|
683
|
+
</dl>
|
684
|
+
|
685
|
+
<h2>Mysql::Stmt ���饹</h2>
|
686
|
+
<p>
|
687
|
+
MySQL �ǥץ�ڥ��ɥ��ơ��ȥ��Ȥ�����Υ��饹�Ǥ���
|
688
|
+
</p>
|
689
|
+
<p>
|
690
|
+
������:
|
691
|
+
</p>
|
692
|
+
<pre class="code">
|
693
|
+
my = Mysql.new(hostname, username, password, databasename)
|
694
|
+
st = my.prepare("insert into tblname (col1,col2,col3) values (?,?,?)")
|
695
|
+
st.execute("abc",123,Time.now)
|
696
|
+
st.prepare("select col1,col2,col3 from tblname")
|
697
|
+
st.execute
|
698
|
+
st.fetch # => ["abc", 123, #<Mysql::Time:2005-07-24 23:52:55>]
|
699
|
+
st.close
|
700
|
+
</pre>
|
701
|
+
|
702
|
+
<h3>���֥������ȥ�å�</h3>
|
703
|
+
<dl>
|
704
|
+
<dt>affected_rows()
|
705
|
+
<dd>
|
706
|
+
<p>
|
707
|
+
�ƶ����줿�Կ����֤��ޤ���
|
708
|
+
</p>
|
709
|
+
|
710
|
+
<dt>bind_result(class, ...)
|
711
|
+
<dd>
|
712
|
+
<p>
|
713
|
+
��̤��֤�������ξ��ˡ����Ф�����ͤΥ��饹����ꤷ�ޤ���
|
714
|
+
����Ǥ��륯�饹�ϡ�Numeric, Integer, Fixnum, Float, Mysql::Time �Ǥ���
|
715
|
+
nil ����ꤹ��ȡ���ưȽ�̤��ޤ���
|
716
|
+
bind_result ��¹Ԥ��ʤ����ϼ�ưȽ�̤��ޤ���
|
717
|
+
</p>
|
718
|
+
|
719
|
+
<dt>close()
|
720
|
+
<dd>
|
721
|
+
<p>
|
722
|
+
Mysql::Stmt ���֥������Ȥ�������ޤ���
|
723
|
+
</p>
|
724
|
+
|
725
|
+
<dt>data_seek(offset)
|
726
|
+
<dd>
|
727
|
+
<p>
|
728
|
+
���� fetch() �Ǽ��Ф����Ԥ� offset ���ܤιԤˤ��ޤ���
|
729
|
+
offset �� 0 ����Ϥޤ�ޤ���
|
730
|
+
</p>
|
731
|
+
|
732
|
+
<dt>execute(arg, ...)
|
733
|
+
<dd>
|
734
|
+
<p>
|
735
|
+
prepare() ����������˥ѥ�����Ϳ���Ƽ¹Ԥ��ޤ���
|
736
|
+
</p>
|
737
|
+
|
738
|
+
<dt>fetch()
|
739
|
+
<dd>
|
740
|
+
<p>
|
741
|
+
execute() �Ǽ¹Ԥ���������η�̤��ͤ�����Ǽ��Ф��ޤ���
|
742
|
+
�ͤ��֤��ʤ�������ξ��䡢�Ǹ�ޤǼ��Ф������� nil ���֤��ޤ���
|
743
|
+
</p>
|
744
|
+
<p>
|
745
|
+
����γ����Ǥ� MySQL �η��˱����Ƽ��Τ褦�ˤʤ�ޤ���
|
746
|
+
</p>
|
747
|
+
<table>
|
748
|
+
<tr><th>MySQL�η�<th>Ruby�Υ��饹
|
749
|
+
<tr><td>TINYINT, SMALLINT, MEDIUMINT, YEAR<td>Fixnum
|
750
|
+
<tr><td>INT, BIGINT<td>Fixnum�ޤ���Bignum
|
751
|
+
<tr><td>FLOAT, DOUBLE<td>Float
|
752
|
+
<tr><td>DECIMAL<td>String
|
753
|
+
<tr><td>DATE, DATETIME, TIMESTAMP, TIME<td>Mysql::Time
|
754
|
+
<tr><td>CHAR, VARCHAR, BINARY, VARBINARY, TINYBLOB, TINYTEXT, TINYBLOB, TINYTEXT, MEDIUMBLOB, MEDIUMTEXT, LONGBLOB, LONGTEXT, ENUM, SET, BIT<td>String
|
755
|
+
<tr><td>NULL<td>NilClass
|
756
|
+
</table>
|
757
|
+
|
758
|
+
<dt>field_count()
|
759
|
+
<dd>
|
760
|
+
<p>
|
761
|
+
prepare ���������꤬�֤���̤Υե�����ɿ����֤��ޤ���
|
762
|
+
</p>
|
763
|
+
|
764
|
+
<dt>free_result()
|
765
|
+
<dd>
|
766
|
+
<p>
|
767
|
+
������̤�������ޤ���
|
768
|
+
</p>
|
769
|
+
|
770
|
+
<dt>insert_id()
|
771
|
+
<dd>
|
772
|
+
<p>
|
773
|
+
�������줿 AUTO_INCREMENT ���ܤ��ͤ��֤��ޤ���
|
774
|
+
</p>
|
775
|
+
|
776
|
+
<dt>num_rows()
|
777
|
+
<dd>
|
778
|
+
<p>
|
779
|
+
������̤ιԿ����֤��ޤ���
|
780
|
+
</p>
|
781
|
+
|
782
|
+
<dt>param_count()
|
783
|
+
<dd>
|
784
|
+
<p>
|
785
|
+
prepare() ����������Υѥ�����?�פο����֤��ޤ���
|
786
|
+
</p>
|
787
|
+
|
788
|
+
<dt>prepare(q)
|
789
|
+
<dd>
|
790
|
+
<p>
|
791
|
+
��������Ф�����ޤ������λ����ǤϤޤ��¹Ԥ���ޤ���
|
792
|
+
execute() �Ǽ¹Ԥ���ޤ���
|
793
|
+
</p>
|
794
|
+
|
795
|
+
<dt>result_metadata()
|
796
|
+
<dd>
|
797
|
+
<p>
|
798
|
+
prepare() ������������֤�����̤Υե�����ɤ� Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
799
|
+
</p>
|
800
|
+
|
801
|
+
<dt>row_seek(offset)
|
802
|
+
<dd>
|
803
|
+
<p>
|
804
|
+
���� fetch() �Ǽ��Ф����Ԥ� offset �ΰ��֤ˤ��ޤ���
|
805
|
+
data_seek �Ȱۤʤ� offset �� row_tell() ���֤���� Mysql::RowOffset ���饹���֥������ȤǤ���
|
806
|
+
</p>
|
807
|
+
|
808
|
+
<dt>row_tell()
|
809
|
+
<dd>
|
810
|
+
<p>
|
811
|
+
���ߤιԤΰ��֤� Mysql::RowOffset ���饹���֥������Ȥ��֤��ޤ���
|
812
|
+
</p>
|
813
|
+
|
814
|
+
<dt>sqlstate()
|
815
|
+
<dd>
|
816
|
+
<p>
|
817
|
+
���顼�����ɤ� SQLSTATE ʸ������֤��ޤ���
|
818
|
+
</p>
|
819
|
+
</dl>
|
820
|
+
|
821
|
+
<h3>���ƥ졼��</h3>
|
822
|
+
<dl>
|
823
|
+
<dt>each() {|x| ��}
|
824
|
+
<dd>
|
825
|
+
<p>
|
826
|
+
������̤γƹԤ��Ȥ� {��} ���֤��ޤ���
|
827
|
+
x �� fetch() ���֤�����Τ�Ʊ������Ǥ���
|
828
|
+
</p>
|
829
|
+
</dl>
|
830
|
+
|
831
|
+
<h2>Mysql::Time ���饹</h2>
|
832
|
+
<p>
|
833
|
+
Mysql::Stmt �ǻȤ���������ɽ������Υ��饹�Ǥ���
|
834
|
+
</p>
|
835
|
+
|
836
|
+
<h3>���饹��å�</h3>
|
837
|
+
<dl>
|
838
|
+
<dt>new(year=0,month=0,day=0,hour=0,minute=0,second=0,neg=false,second_part=0)
|
839
|
+
<dd>
|
840
|
+
<p>
|
841
|
+
Mysql::Time���饹��������ޤ���
|
842
|
+
</p>
|
843
|
+
</dl>
|
844
|
+
|
845
|
+
<h3>���֥��������ѿ�</h3>
|
846
|
+
<dl>
|
847
|
+
<dt>year
|
848
|
+
<dd>
|
849
|
+
ǯ
|
850
|
+
|
851
|
+
<dt>month
|
852
|
+
<dd>
|
853
|
+
��
|
854
|
+
|
855
|
+
<dt>day
|
856
|
+
<dd>
|
857
|
+
��
|
858
|
+
|
859
|
+
<dt>hour
|
860
|
+
<dd>
|
861
|
+
��
|
862
|
+
|
863
|
+
<dt>minute
|
864
|
+
<dd>
|
865
|
+
ʬ
|
866
|
+
|
867
|
+
<dt>second
|
868
|
+
<dd>
|
869
|
+
��
|
870
|
+
|
871
|
+
<dt>neg
|
872
|
+
<dd>
|
873
|
+
���郎���ξ��� false, ��ξ��� true
|
874
|
+
|
875
|
+
<dt>second_part
|
876
|
+
<dd>
|
877
|
+
�äξ������ʲ���̤����
|
878
|
+
</dl>
|
879
|
+
|
880
|
+
<h2>Mysql::Error ���饹</h2>
|
881
|
+
<p>
|
882
|
+
MySQL �Υ��顼��ɽ�魯���饹�Ǥ���
|
883
|
+
MySQL �Υ��顼��ȯ�����������㳰�Ȥ�����������ޤ���
|
884
|
+
</p>
|
885
|
+
|
886
|
+
<h3>���֥��������ѿ�(�ɤ߽Ф��Τ�)</h3>
|
887
|
+
<dl>
|
888
|
+
<dt>error
|
889
|
+
<dd>���顼��å�����
|
890
|
+
<dt>errno
|
891
|
+
<dd>���顼�ֹ�
|
892
|
+
</dl>
|
893
|
+
<p>
|
894
|
+
errno ���б���������� C API �Τ�Τ�Ʊ���Ǥ���
|
895
|
+
</p>
|
896
|
+
<p>
|
897
|
+
��) Mysql::Error::CR_UNKNOWN_HOST
|
898
|
+
</p>
|
899
|
+
|
900
|
+
<h2>����</h2>
|
901
|
+
<dl>
|
902
|
+
<dt>2009-02-01
|
903
|
+
<dd>
|
904
|
+
version 2.8.1<br>
|
905
|
+
<ul>
|
906
|
+
<li>Ruby 1.9.1 �����
|
907
|
+
</ul>
|
908
|
+
|
909
|
+
<dt>2008-09-29
|
910
|
+
<dd>
|
911
|
+
version 2.8<br>
|
912
|
+
version 2.7.7
|
913
|
+
<ul>
|
914
|
+
<li>MySQL�ؤ���³���� SIGVTALRM �� EINTR �ˤʤ뤳�Ȥ������������ ([ruby-dev:31842])
|
915
|
+
<li>MySQL/Ruby 2.7.* �� Ruby 1.8.5 �ǥ���ѥ���Ǥ��ʤ��ä���
|
916
|
+
</ul>
|
917
|
+
|
918
|
+
<dt>2008-06-20
|
919
|
+
<dd>
|
920
|
+
version 2.8pre4
|
921
|
+
<ul>
|
922
|
+
<li>���顼����ե��������������¾��[ruby-dev:35152]
|
923
|
+
</ul>
|
924
|
+
|
925
|
+
<dt>2008-06-17
|
926
|
+
<dd>
|
927
|
+
version 2.8pre3<br>
|
928
|
+
version 2.7.6
|
929
|
+
<ul>
|
930
|
+
<li>64bit �Ķ��� Mysql::Stmt#execute ���礭�ʿ���(2**30 �ʾ�)�ǥ��顼�ˤʤ����������
|
931
|
+
</ul>
|
932
|
+
|
933
|
+
<dt>2008-03-08
|
934
|
+
<dd>
|
935
|
+
version 2.8pre2<br>
|
936
|
+
version 2.7.5
|
937
|
+
<ul>
|
938
|
+
<li>64bit �Ķ��� Mysql::Stmt#fetch �ǿ��ͤ���������������
|
939
|
+
</ul>
|
940
|
+
|
941
|
+
<dt>2007-12-26
|
942
|
+
<dd>
|
943
|
+
version 2.8pre1
|
944
|
+
<ul>
|
945
|
+
<li>Ruby 1.9.0 �б�
|
946
|
+
<li>Incompat: Mysql::Result#each_hash ������˥����̾ʸ�������������ΤǤϤʤ�����ͭ����褦�ˤ�����
|
947
|
+
<li>Incompat: �֥��å��Ĥ� Mysql#query �Ǽ�ưŪ�˥ޥ�����ơ��ȥ��ȥ⡼�ɤˤʤ�ʤ��褦�ˤ�����
|
948
|
+
</ul>
|
949
|
+
|
950
|
+
<dt>2007-08-22
|
951
|
+
<dd>
|
952
|
+
version 2.7.4
|
953
|
+
<ul>
|
954
|
+
<li>BUG: Mysql::Stmt#execute �����������Ƥ�����
|
955
|
+
</ul>
|
956
|
+
|
957
|
+
<dt>2006-12-20
|
958
|
+
<dd>
|
959
|
+
version 2.7.3
|
960
|
+
<ul>
|
961
|
+
<li>BUG: �֥��å��Ĥ� Mysql#query �����Ǹ�Υ����꤬���顼�ξ�����ߤ��Ƥ��ޤ���
|
962
|
+
</ul>
|
963
|
+
|
964
|
+
<dt>2006-10-28
|
965
|
+
<dd>
|
966
|
+
version 2.7.2
|
967
|
+
<ul>
|
968
|
+
<li>BUG: ��̤��֤��ʤ�������� Mysql::Stmt#result_metadata �� nil ���Ѥ����褦�ˤ��� (Thanks to Hidetoshi)
|
969
|
+
<li>BUG: Mysql#close �� mysql_errno �ʤ��褦���ѹ�
|
970
|
+
<li>BUG: �֥��å��Ĥ� Mysql#query ��ʣ�����ơ��ȥ��Ȼ��˥��顼��̵�뤷�Ƥ�����
|
971
|
+
<li>extconf.rb �� Visual C++ �б� (Thanks to Shugo Maeda)
|
972
|
+
<li>BIT�����б�
|
973
|
+
<li>Mysql::Field �� TYPE_BIT, TYPE_NEWDECIMAL �ɲ�
|
974
|
+
</ul>
|
975
|
+
|
976
|
+
<dt>2006-06-04
|
977
|
+
<dd>
|
978
|
+
version 2.7.1
|
979
|
+
<ul>
|
980
|
+
<li>free() �� xfree() ���ѹ���Windows �ǤΥ���å���β���Τ��ᡣ(Tobias Grimm �˴���)
|
981
|
+
</ul>
|
982
|
+
|
983
|
+
<dt>2005-08-22
|
984
|
+
<dd>
|
985
|
+
version 2.7
|
986
|
+
<ul>
|
987
|
+
<li>Mysql#options������ɲá�Mysql::OPT_GUESS_CONNECTION, Mysql::OPT_USE_EMBEDDED_CONNECTION, Mysql::OPT_USE_REMOTE_CONNECTION, Mysql::SET_CLIENT_IP
|
988
|
+
<li>test.rb: 4.0.x, 5.0.x �б�
|
989
|
+
</ul>
|
990
|
+
|
991
|
+
<dt>2005-08-16
|
992
|
+
<dd>
|
993
|
+
version 2.7-beta3
|
994
|
+
<ul>
|
995
|
+
<li>Mysql::Stmt#bind_result �ɲ�
|
996
|
+
</ul>
|
997
|
+
|
998
|
+
<dt>2005-08-02
|
999
|
+
<dd>
|
1000
|
+
version 2.7-beta2
|
1001
|
+
<ul>
|
1002
|
+
<li>BUG: mysql.c.in: fetch_hash: �ͤ� nil �����Ǥ��ϥå���˴ޤޤ�ʤ���(Stefan Kaes �˴���)
|
1003
|
+
<li>��� Mysql::VERSION �ɲ�
|
1004
|
+
<li>Mysql#prepare �ɲ�
|
1005
|
+
</ul>
|
1006
|
+
|
1007
|
+
<dt>2005-07-24
|
1008
|
+
<dd>
|
1009
|
+
version 2.7-beta
|
1010
|
+
<ul>
|
1011
|
+
<li>Mysql#stmt_init �ɲ�
|
1012
|
+
<li>Mysql::Stmt, Mysql::Time, Mysql::RowOffset ���饹�ɲ�
|
1013
|
+
<li>Mysql::Error#sqlstate �ɲ�
|
1014
|
+
<li>Mysql::Result#row_seek,row_tell ������ offset �ͤ� Mysql::RowOffset ���֥������Ȥ��ѹ�
|
1015
|
+
</ul>
|
1016
|
+
|
1017
|
+
<dt>2005-07-31
|
1018
|
+
<dd>
|
1019
|
+
version 2.6.3
|
1020
|
+
<ul>
|
1021
|
+
<li>��� Mysql::VERSION �ɲ�
|
1022
|
+
</ul>
|
1023
|
+
|
1024
|
+
<dt>2005-07-26
|
1025
|
+
<dd>
|
1026
|
+
version 2.6.2
|
1027
|
+
<ul>
|
1028
|
+
<li>BUG: mysql.c.in: fetch_hash: �ͤ� nil �����Ǥ��ϥå���˴ޤޤ�ʤ���(Stefan Kaes �˴���)
|
1029
|
+
</ul>
|
1030
|
+
|
1031
|
+
<dt>2005-06-28
|
1032
|
+
<dd>
|
1033
|
+
version 2.6.1
|
1034
|
+
<ul>
|
1035
|
+
<li>mysql.c.in: MacOSX �ǤΥ���ѥ��륨�顼������
|
1036
|
+
</ul>
|
1037
|
+
|
1038
|
+
<dt>2005-04-25
|
1039
|
+
<dd>
|
1040
|
+
version 2.6
|
1041
|
+
<ul>
|
1042
|
+
<li>Mysql#option() �Ѥ�����ɲ�
|
1043
|
+
Mysql::OPT_PROTOCOL, Mysql::OPT_READ_TIMEOUT,
|
1044
|
+
Mysql::OPT_WRITE_TIMEOUT, Mysql::SET_CHARSET_DIR,
|
1045
|
+
Mysql::SET_CHARSET_NAME, Mysql::SHARED_MEMORY_BASE_NAME,
|
1046
|
+
Mysql::SECURE_AUTH
|
1047
|
+
<li>Mysql#more_results?(), Mysql#next_result(),
|
1048
|
+
Mysql#set_server_option(), Mysql#sqlstate() �ɲ�
|
1049
|
+
<li>Mysql#connect() �Υե饰������ɲ�
|
1050
|
+
Mysql::CLIENT_MULTI_STATEMENTS, Mysql::CLIENT_MULTI_RESULTS
|
1051
|
+
<li>Mysql#set_server_option() �Ѥ�����ɲ�
|
1052
|
+
Mysql::OPTION_MULTI_STATEMENTS_ON,
|
1053
|
+
Mysql::OPTION_MULTI_STATEMENTS_OFF
|
1054
|
+
<li>�֥��å��դ� Mysql#query()
|
1055
|
+
<li>Mysql#reconnect(), Mysql#reconnect=() �ɲ�
|
1056
|
+
<li>MySQL �Ȥ���³���ڤ줿�Ȥ��ˡ��ǥե���ȤǤϺ���³���ʤ��褦�ˤ�����
|
1057
|
+
</ul>
|
1058
|
+
|
1059
|
+
<dt>2005-02-12
|
1060
|
+
<dd>
|
1061
|
+
version 2.5.2
|
1062
|
+
<ul>
|
1063
|
+
<li>BUG: Mysql#connect ����³�������³�����Ǥ���ʤ���(Andres Salomon �˴���)
|
1064
|
+
</ul>
|
1065
|
+
|
1066
|
+
<dt>2004-09-20
|
1067
|
+
<dd>
|
1068
|
+
version 2.5.1
|
1069
|
+
<ul>
|
1070
|
+
<li>Mysql#set_ssl() �ɲá�
|
1071
|
+
</ul>
|
1072
|
+
|
1073
|
+
<dt>2004-08-31
|
1074
|
+
<dd>
|
1075
|
+
version 2.5
|
1076
|
+
<ul>
|
1077
|
+
<li>MySQL 4.1.x �б�
|
1078
|
+
<li>MysqlRes, MysqlField, MysqlError �� Mysql::Result, Mysql::Field,
|
1079
|
+
Mysql::Error ���ѹ���
|
1080
|
+
<li>Mysql.client_version(), Mysql.get_client_version(),
|
1081
|
+
Mysql#client_version(), Mysql#get_client_version(),
|
1082
|
+
Mysql#server_version(), Mysql#get_server_version(),
|
1083
|
+
Mysql#warning_count(), Mysql#commit(), Mysql#rollback(),
|
1084
|
+
Mysql#autocommit() �ɲá�
|
1085
|
+
<li>Mysql::Field#is_not_null?(), Mysql::Field#is_pri_key?(),
|
1086
|
+
Mysql::Field#is_num?() �ɲá�
|
1087
|
+
<li>MysqlField::TYPE_VAR_STRING �ɲá�
|
1088
|
+
</ul>
|
1089
|
+
|
1090
|
+
<dt>2003-08-10
|
1091
|
+
<dd>
|
1092
|
+
version 2.4.5
|
1093
|
+
<ul>
|
1094
|
+
<li>extconf.rb: MySQL 4.1 ���
|
1095
|
+
<li>mysql.c.in: Ruby 1.8 ���
|
1096
|
+
</ul>
|
1097
|
+
|
1098
|
+
<dt>2003-02-23
|
1099
|
+
<dd>
|
1100
|
+
version 2.4.4a
|
1101
|
+
<ul>
|
1102
|
+
<li>extconf.rb �� Ruby 1.8.0 ���
|
1103
|
+
</ul>
|
1104
|
+
|
1105
|
+
<dt>2003-01-29
|
1106
|
+
<dd>
|
1107
|
+
version 2.4.4
|
1108
|
+
<ul>
|
1109
|
+
<li>Mysql::OPT_LOCAL_INFILE ���ɲá�
|
1110
|
+
<li>extconf.rb �� --with-mysql-config ���ץ������ɲ�
|
1111
|
+
<li>extconf.rb ���˼�ʥ饤�֥���ư���Ф���褦�ˤ�����
|
1112
|
+
</ul>
|
1113
|
+
|
1114
|
+
<dt>2003-01-05
|
1115
|
+
<dd>
|
1116
|
+
version 2.4.3c
|
1117
|
+
<ul>
|
1118
|
+
<li>�Ѹ�� README �β��ǡ�Paul DuBois �˴��ա�
|
1119
|
+
</ul>
|
1120
|
+
|
1121
|
+
<dt>2002-12-24
|
1122
|
+
<dd>
|
1123
|
+
version 2.4.3b
|
1124
|
+
<ul>
|
1125
|
+
<li>extconf.rb �� Ruby 1.6.8 ���
|
1126
|
+
</ul>
|
1127
|
+
|
1128
|
+
<dt>2002-11-07
|
1129
|
+
<dd>
|
1130
|
+
version 2.4.3a
|
1131
|
+
<ul>
|
1132
|
+
<li>���顼�������ʣ�������뤳�Ȥ�����Х�������
|
1133
|
+
</ul>
|
1134
|
+
|
1135
|
+
<dt>2002-09-10
|
1136
|
+
<dd>
|
1137
|
+
version 2.4.3
|
1138
|
+
<ul>
|
1139
|
+
<li>ER_ �ǻϤޤ륨�顼����ˤ��б�������
|
1140
|
+
<li>errmsg.h �� mysqld_error.h ���鼫ưŪ�˥��顼������������褦�ˤ�����
|
1141
|
+
</ul>
|
1142
|
+
|
1143
|
+
<dt>2002-01-07
|
1144
|
+
<dd>
|
1145
|
+
version 2.4.2
|
1146
|
+
<ul>
|
1147
|
+
<li>MySQL 4.0 ���
|
1148
|
+
<li>uint �� unsigned int ���ѹ���mswin�б��ˡ�
|
1149
|
+
</ul>
|
1150
|
+
|
1151
|
+
<dt>2001-12-02
|
1152
|
+
<dd>
|
1153
|
+
version 2.4.1
|
1154
|
+
<ul>
|
1155
|
+
<li>���פ� extern ������Cygiwn�б��ˡ�
|
1156
|
+
<li>extconf.rb �Υ��ץ������ѹ���
|
1157
|
+
</ul>
|
1158
|
+
|
1159
|
+
<dt>2001-10-12
|
1160
|
+
<dd>
|
1161
|
+
version 2.4.0
|
1162
|
+
<ul>
|
1163
|
+
<li>Ruby 1.7 �����
|
1164
|
+
<li>Mysql::debug(), Mysql#change_user(), Mysql#character_set_name(),
|
1165
|
+
Mysql#dump_debug_info() ���ɲá�
|
1166
|
+
</ul>
|
1167
|
+
|
1168
|
+
<dt>2001-03-25
|
1169
|
+
<dd>
|
1170
|
+
version 2.3.2a
|
1171
|
+
<ul>
|
1172
|
+
<li>t/50update.rb ��Ƚ����ˡ���ѹ�
|
1173
|
+
</ul>
|
1174
|
+
|
1175
|
+
<dt>2001-03-19
|
1176
|
+
<dd>
|
1177
|
+
version 2.3.2
|
1178
|
+
<ul>
|
1179
|
+
<li>�����(20��) MysqlRes ���֥������Ȥ����������顢����Ū�� GC ����褦�ˤ�����
|
1180
|
+
<li>Mysql#escape_string(), Mysql#quote() �� mysql_real_escape_string() ����Ѥ���褦�ˤ�����
|
1181
|
+
</ul>
|
1182
|
+
|
1183
|
+
<dt>2000-09-02
|
1184
|
+
<dd>
|
1185
|
+
version 2.3.1
|
1186
|
+
<ul>
|
1187
|
+
<li>Mysql#initialize() ���ɲ�(Ruby 1.6 �б�)��
|
1188
|
+
</ul>
|
1189
|
+
|
1190
|
+
<dt>2000-07-22
|
1191
|
+
<dd>
|
1192
|
+
version 2.3.0
|
1193
|
+
<ul>
|
1194
|
+
<li>MysqlRes#free() ���ɲá�
|
1195
|
+
<li>Mysql#initialize(), MysqlRes#initialize() ��ͭ���ˤ�����
|
1196
|
+
<li>true ���֤��Ƥ�����åɤ�self ���֤��褦�ˤ�����
|
1197
|
+
</ul>
|
1198
|
+
|
1199
|
+
<dt>2000-05-27
|
1200
|
+
<dd>
|
1201
|
+
version 2.2.1a
|
1202
|
+
<ul>
|
1203
|
+
<li>test.rb ������ǥѥ��������Ǥ���褦�ˤ�����
|
1204
|
+
</ul>
|
1205
|
+
|
1206
|
+
<dt>2000-05-10
|
1207
|
+
<dd>
|
1208
|
+
version 2.2.1
|
1209
|
+
<ul>
|
1210
|
+
<li>�ǡ����١�������Υǡ�����ֱ������줿��ʸ������ѹ���
|
1211
|
+
<li>�ƥ��ȥ�����ץ��ɲá�
|
1212
|
+
</ul>
|
1213
|
+
|
1214
|
+
<dt>1999-09-28
|
1215
|
+
<dd>
|
1216
|
+
version 2.2.0
|
1217
|
+
<ul>
|
1218
|
+
<li>Mysql::init(), Mysql#options(), Mysql#real_connect() ���ɲá�
|
1219
|
+
<li>Mysql#field_count ���ɲá�
|
1220
|
+
</ul>
|
1221
|
+
|
1222
|
+
<dt>1999-09-24
|
1223
|
+
<dd>
|
1224
|
+
version 2.1.7
|
1225
|
+
<ul>
|
1226
|
+
<li>MySQL 3.22.26 �����
|
1227
|
+
<li>MysqlField#inspect() ���ɲá�
|
1228
|
+
</ul>
|
1229
|
+
|
1230
|
+
<dt>1999-06-17
|
1231
|
+
<dd>
|
1232
|
+
version 2.1.6
|
1233
|
+
<ul>
|
1234
|
+
<li>fetch_field ������뤳�Ȥ����ä���
|
1235
|
+
</ul>
|
1236
|
+
|
1237
|
+
<dt>1999-06-12
|
1238
|
+
<dd>
|
1239
|
+
version 2.1.5
|
1240
|
+
<ul>
|
1241
|
+
<li>Ruby 1.3.x �б�������Ⱦü���ä���
|
1242
|
+
</ul>
|
1243
|
+
|
1244
|
+
<dt>1999-05-30
|
1245
|
+
<dd>
|
1246
|
+
version 2.1.4
|
1247
|
+
<ul>
|
1248
|
+
<li>Ruby 1.3.x �����
|
1249
|
+
</ul>
|
1250
|
+
|
1251
|
+
<dt>1999-04-13
|
1252
|
+
<dd>
|
1253
|
+
version 2.1.3
|
1254
|
+
<ul>
|
1255
|
+
<li>fetch_hash/each_hash �ΰ����ο���������ְ�äƤ�����
|
1256
|
+
<li>fetch_hash/each_hash �� true ����ꤷ�����ι���̾���礱�Ƥ�����
|
1257
|
+
<li>NULL�ͤι��ܤ������ fetch_hash/each_hash ��ư�������������ä���
|
1258
|
+
</ul>
|
1259
|
+
|
1260
|
+
<dt>1999-02-01
|
1261
|
+
<dd>
|
1262
|
+
version 2.1.2
|
1263
|
+
<ul>
|
1264
|
+
<li>Mysql#refresh() �� Mysql::REFRESH_* ���ɲá�
|
1265
|
+
<li>MySQL 3.21.xx �ˤ��б�(�������Ĥ���)��
|
1266
|
+
</ul>
|
1267
|
+
|
1268
|
+
<dt>1999-01-24
|
1269
|
+
<dd>
|
1270
|
+
version 2.1.1
|
1271
|
+
<ul>
|
1272
|
+
<li>MysqlError#error(), MysqlError#errno() ���ɲá�
|
1273
|
+
<li>MysqlError::CR_* ���ɲá�
|
1274
|
+
</ul>
|
1275
|
+
|
1276
|
+
<dt>1999-01-17
|
1277
|
+
<dd>
|
1278
|
+
version 2.1
|
1279
|
+
<ul>
|
1280
|
+
<li>fetch_hash, each_hash �� C �������˰�ư��
|
1281
|
+
<li>MysqlField#hash() ���ɲá�
|
1282
|
+
<li>escape_string, get_client_info �֥������ȥ�åɤȤ��Ƥ�Ȥ���褦�ˤ�����
|
1283
|
+
</ul>
|
1284
|
+
|
1285
|
+
<dt>1998-11-29
|
1286
|
+
<dd>
|
1287
|
+
version 2.0.1
|
1288
|
+
<ul>
|
1289
|
+
<li>fetch_hash, each_hash �� with_table �������ɲá�
|
1290
|
+
<li>��äѤ� get_* ��å�̾�� C API ��Ʊ���ˤ�����
|
1291
|
+
<li>mysql-compat.rb �� alias �ǽ�ľ������
|
1292
|
+
<li>Mysql ����� CLIENT_* �� MysqlField ������ˤʤäƤ�����
|
1293
|
+
</ul>
|
1294
|
+
|
1295
|
+
<dt>1998-11-15
|
1296
|
+
<dd>
|
1297
|
+
version 2.0
|
1298
|
+
<ul>
|
1299
|
+
<li>��å�̾�� C API ��Ʊ���ˤ�����
|
1300
|
+
<li>C++ �Ǥ��̤�褦�˽�ľ������
|
1301
|
+
</ul>
|
1302
|
+
|
1303
|
+
<dt>1998-08-13
|
1304
|
+
<dd>
|
1305
|
+
version 1.0
|
1306
|
+
<ul>
|
1307
|
+
<li>����������
|
1308
|
+
</ul>
|
1309
|
+
</dl>
|
1310
|
+
|
1311
|
+
<h2>���</h2>
|
1312
|
+
<p>
|
1313
|
+
e-mail: �Ȥߤ��ޤ��Ҥ� <a href="mailto:tommy@tmtm.org">tommy@tmtm.org</a>
|
1314
|
+
<a href="http://tmtm.org">http://tmtm.org</a>
|
1315
|
+
</p>
|
1316
|
+
<hr>
|
1317
|
+
<address><a href="mailto:tommy@tmtm.org">TOMITA Masahiro</a></address>
|
1318
|
+
<!-- Created: Sun Aug 29 11:52:09 JST 2004 -->
|
1319
|
+
<!-- hhmts start -->
|
1320
|
+
Last modified: Sun Feb 1 17:41:18 JST 2009
|
1321
|
+
<!-- hhmts end -->
|
1322
|
+
</body>
|
1323
|
+
</html>
|