Download - MySQL/Ruby終了のお知らせ
![Page 1: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/1.jpg)
Powered by Rabbit 0.6.1
MySQL/Ruby 終了のお知らせ
とみたまさひろ
![Page 2: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/2.jpg)
Powered by Rabbit 0.6.1
自己紹介とみた まさひろ✓
ID: tommy とか tmtm とか tmtms とか
✓
Ruby歴 十数年✓
MySQL歴 十数年✓1/72
![Page 3: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/3.jpg)
Powered by Rabbit 0.6.1
自己紹介
MySQL徹底入門
2/72
![Page 4: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/4.jpg)
Powered by Rabbit 0.6.1
自己紹介
MySQL徹底活用
3/72
![Page 5: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/5.jpg)
Powered by Rabbit 0.6.1
自己紹介
MySQL辞典
4/72
![Page 6: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/6.jpg)
Powered by Rabbit 0.6.1
自己紹介
Postfix辞典
5/72
![Page 7: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/7.jpg)
Powered by Rabbit 0.6.1
自己紹介
Rubyの本✓
なし✓
6/72
![Page 8: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/8.jpg)
Powered by Rabbit 0.6.1
今日はMySQLの方からきました
7/72
![Page 9: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/9.jpg)
Powered by Rabbit 0.6.1
MySQLご存知ですよね?
8/72
![Page 10: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/10.jpg)
Powered by Rabbit 0.6.1
エンタープライズな方は嫌いらしい
9/72
![Page 11: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/11.jpg)
Powered by Rabbit 0.6.1
有名なオープンソース
RDBMSです10/72
![Page 12: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/12.jpg)
Powered by Rabbit 0.6.1
オラクル社の orz...
11/72
![Page 13: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/13.jpg)
Powered by Rabbit 0.6.1
元MySQL開発陣が
MySQLをfork12/72
![Page 14: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/14.jpg)
Powered by Rabbit 0.6.1
MariaDB, Drizzle
13/72
![Page 15: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/15.jpg)
Powered by Rabbit 0.6.1
MySQL終了のお知
らせ?14/72
![Page 16: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/16.jpg)
Powered by Rabbit 0.6.1
それはさておき
15/72
![Page 17: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/17.jpg)
Powered by Rabbit 0.6.1
MySQL/Ruby
16/72
![Page 18: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/18.jpg)
Powered by Rabbit 0.6.1
MySQLをRubyから使うためのライブ
ラリ17/72
![Page 19: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/19.jpg)
Powered by Rabbit 0.6.1
MySQLのCライブラリのラッパー
18/72
![Page 20: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/20.jpg)
Powered by Rabbit 0.6.1
ここ
19/72
![Page 21: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/21.jpg)
Powered by Rabbit 0.6.1
これがないと Rails も動かない
20/72
![Page 22: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/22.jpg)
Powered by Rabbit 0.6.1
超重要
21/72
![Page 23: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/23.jpg)
Powered by Rabbit 0.6.1
作者 俺
22/72
![Page 24: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/24.jpg)
Powered by Rabbit 0.6.1
MySQL/Ruby終了
のお知らせ23/72
![Page 25: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/25.jpg)
Powered by Rabbit 0.6.1
高度な技術的な理由により
24/72
![Page 26: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/26.jpg)
Powered by Rabbit 0.6.1
例125/72
![Page 27: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/27.jpg)
Powered by Rabbit 0.6.1
「Macでコンパイルできないんだけど」
26/72
![Page 28: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/28.jpg)
Powered by Rabbit 0.6.1
Mac持ってません。く
ださい27/72
![Page 29: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/29.jpg)
Powered by Rabbit 0.6.1
例228/72
![Page 30: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/30.jpg)
Powered by Rabbit 0.6.1
「Windowsのバイナリはど
こにあるの?」
29/72
![Page 31: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/31.jpg)
Powered by Rabbit 0.6.1
Windows使ってないので知りません
30/72
![Page 32: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/32.jpg)
Powered by Rabbit 0.6.1
Windowsはくれなくてもいいです
31/72
![Page 33: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/33.jpg)
Powered by Rabbit 0.6.1
例332/72
![Page 34: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/34.jpg)
Powered by Rabbit 0.6.1
「Ruby1.9で動かな
い」33/72
![Page 35: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/35.jpg)
Powered by Rabbit 0.6.1
ごめんなさい
34/72
![Page 36: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/36.jpg)
Powered by Rabbit 0.6.1
今は動く… はず…… たぶん…
35/72
![Page 37: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/37.jpg)
Powered by Rabbit 0.6.1
Ruby/MySQL
36/72
![Page 38: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/38.jpg)
Powered by Rabbit 0.6.1
ここ
37/72
![Page 39: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/39.jpg)
Powered by Rabbit 0.6.1
比較
38/72
![Page 40: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/40.jpg)
Powered by Rabbit 0.6.1
コンパイル不要
39/72
![Page 41: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/41.jpg)
Powered by Rabbit 0.6.1
作者 俺
40/72
![Page 42: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/42.jpg)
Powered by Rabbit 0.6.1
「名前がややこしいん
だけど」41/72
![Page 43: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/43.jpg)
Powered by Rabbit 0.6.1
仕様です
42/72
![Page 44: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/44.jpg)
Powered by Rabbit 0.6.1
今後は Ruby/
MySQL だけだから無問題
43/72
![Page 45: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/45.jpg)
Powered by Rabbit 0.6.1
問題44/72
![Page 46: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/46.jpg)
Powered by Rabbit 0.6.1
MySQL 4.1 以降未対応
45/72
![Page 47: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/47.jpg)
Powered by Rabbit 0.6.1
Ruby/MySQL 3.0 のお知らせ
46/72
![Page 48: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/48.jpg)
Powered by Rabbit 0.6.1
インストール
GitHub
gem install tmtm-ruby-mysql --source http://gems.github.com
47/72
![Page 49: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/49.jpg)
Powered by Rabbit 0.6.1
α版48/72
![Page 50: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/50.jpg)
Powered by Rabbit 0.6.1
特徴49/72
![Page 51: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/51.jpg)
Powered by Rabbit 0.6.1
互換なし
50/72
![Page 52: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/52.jpg)
Powered by Rabbit 0.6.1
型変換
# MySQL/Ruby, Ruby/MySQL < 3.0mysql.query( "select 123,'abc'").fetch #=> ["123", "abc"]
# Ruby/MySQL 3.0mysql.query( "select 123,'abc'").fetch #=> [123, "abc"]
51/72
![Page 53: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/53.jpg)
Powered by Rabbit 0.6.1
メソッド名
# MySQL/RubyMysql::Result#num_rows
# Ruby/MySQL 3.0Mysql::Result#size
52/72
![Page 54: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/54.jpg)
Powered by Rabbit 0.6.1
速度53/72
![Page 55: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/55.jpg)
Powered by Rabbit 0.6.1
計ってみた
# MySQL/Ruby0.1700 0.1400 0.0500 0.0300
# Ruby/MySQL1.1000 1.5700 1.0900 1.4100
54/72
![Page 56: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/56.jpg)
Powered by Rabbit 0.6.1
5倍~50倍遅い orz...
55/72
![Page 57: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/57.jpg)
Powered by Rabbit 0.6.1
Ruby だからいいよ
ね56/72
![Page 58: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/58.jpg)
Powered by Rabbit 0.6.1
コンパイル不要
57/72
![Page 59: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/59.jpg)
Powered by Rabbit 0.6.1
スレッドで並列実行
可能58/72
![Page 60: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/60.jpg)
Powered by Rabbit 0.6.1
Ruby 1.9 M17N 対
応59/72
![Page 61: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/61.jpg)
Powered by Rabbit 0.6.1
MySQLとの間で自動変換
60/72
![Page 62: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/62.jpg)
Powered by Rabbit 0.6.1
charset 重要
61/72
![Page 63: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/63.jpg)
Powered by Rabbit 0.6.1
Rubyライセンス
62/72
![Page 64: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/64.jpg)
Powered by Rabbit 0.6.1
GPLに縛られない
63/72
![Page 65: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/65.jpg)
Powered by Rabbit 0.6.1
MySQL/Ruby
libmysqlclient ← GPL✓
MySQL/Ruby ← GPL?✓
アプリ ←???✓
MySQLに対するFUD「ライセンスがややこしい」
✓
64/72
![Page 66: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/66.jpg)
Powered by Rabbit 0.6.1
Ruby/MySQL
Ruby/MySQL ← Rubyライセンス
✓
アプリ ← 自由✓
シンプル✓
65/72
![Page 67: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/67.jpg)
Powered by Rabbit 0.6.1
おまけ66/72
![Page 68: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/68.jpg)
Powered by Rabbit 0.6.1
プリペアドステートメント
mysql.prepare('select ?,?').execute(123,'abc')
↓こう書ける
mysql.query('select ?,?', 123, 'abc')
67/72
![Page 69: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/69.jpg)
Powered by Rabbit 0.6.1
Enumerable
Mysql::Result#each
68/72
![Page 70: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/70.jpg)
Powered by Rabbit 0.6.1
予想される反応
69/72
![Page 71: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/71.jpg)
Powered by Rabbit 0.6.1
「AR 使ってるから
関係ない」70/72
![Page 72: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/72.jpg)
Powered by Rabbit 0.6.1
orz71/72
![Page 73: MySQL/Ruby終了のお知らせ](https://reader034.vdocuments.pub/reader034/viewer/2022042606/54b7946b4a795921568b457b/html5/thumbnails/73.jpg)
Powered by Rabbit 0.6.1
ご清聴ありがとうございました
72/72