{"author_name":"basyura","blog_title":"basyura's blog","type":"rich","provider_name":"Hatena Blog","width":"100%","blog_url":"https://blog.basyura.org/","published":"2009-06-11 00:00:00","url":"https://blog.basyura.org/entry/20090611/p1","categories":["ruby"],"image_url":null,"title":" ActiveRecord \u3068 Sequel","description":"\u305d\u308c\u305e\u308c\u8a08\u3063\u3066\u307f\u308b\u3002sqlite3 \u30d5\u30a1\u30a4\u30eb\u306b Tables \u30c6\u30fc\u30d6\u30eb\u304c\u3042\u3063\u3066\u30011 \u30ec\u30b3\u30fc\u30c9\u3060\u3051\u4fdd\u5b58\u3055\u308c\u3066\u308b\u72b6\u614b\u3002 ActiveRecord \u3067\u8a08\u3063\u3066\u307f\u308b require 'rubygems' require 'active_record' ActiveRecord::Base.establish_connection( :adapter => 'sqlite3', :dbfile => 'dbfile.db' ) class Test < ActiveRecord::Base ; end Test.find(:all).each{|t| puts t.id puts t.name } tim\u2026","author_url":"https://blog.hatena.ne.jp/basyura/","height":"190","version":"1.0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.basyura.org%2Fentry%2F20090611%2Fp1\" title=\" ActiveRecord \u3068 Sequel - basyura&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}