2016-08-01ãã1ã¶æéã®è¨äºä¸è¦§
Ruby ã§é·ãæéæããããç¥ããªãå¦çã®ã¿ã¤ã ã¢ã¦ããè¡ãã«ã¯ãããªæãã«ãã¾ãã require 'timeout' begin Timeout.timeout(3) do # 3ç§ã§ã¿ã¤ã ã¢ã¦ã hoge # ä½ãã®å¦ç end rescue Timeout::Error puts 'ãªãã¼ã' # ã¿ã¤ã ã¢ã¦ãçºçæã®å¦ç end â¦
Sequel ã®ç½ ã£ã½ãæåã«ããã£ãã®ã§ã¡ã¢ã 次ã®ãããªãã¼ãã« a, b, c, d ãããã¾ãã¦ã mysql> select * from a; +------+ | id | +------+ | 1 | +------+ mysql> select * from b; +------+ | id | +------+ | 2 | +------+ mysql> select * from c; â¦