{"image_url":null,"author_name":"troter","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","title":"DataMapper\u3067\u6bd4\u8f03\u7684\u9ad8\u901f\u306bid\u3060\u3051\u53d6\u5f97\u3059\u308b","height":"190","description":"dm-core-1.2.0\u306e\u8a71\u3067\u3059\u3002 \u73fe\u5728\u306e\u691c\u7d22\u6761\u4ef6\u3067id\u3060\u3051\u53d6\u5f97\u3057\u305f\u3044\u3001\u300110000\u4ef6\u304f\u3089\u3044\u3002\u3063\u3066\u8981\u671b\u3001\u3088\u304f\u3042\u308b\u3068\u601d\u3046\u3002:fields\u3067\u6307\u5b9a\u3057\u3066\u3082\u3001\u30e2\u30c7\u30eb\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u308b\u305f\u3081\u3001sql\u3092\u76f4\u63a5\u5b9f\u884c\u3057\u305f\u6642\u306b\u306f\u304b\u306a\u308f\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u3002 \u306a\u306e\u3067\u3001DataMapper::Collection\u306b\u6b21\u306e\u3088\u3046\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u751f\u3084\u3057\u3066\u3044\u308b\u3002 module DataMapper class Collection < LazyArray def select_statement(repository_name = :default) DataMapper.repository(repository_name).adap\u2026","width":"100%","url":"https://troter.hatenablog.jp/entry/20130418/1366247999","published":"2013-04-18 10:19:59","type":"rich","version":"1.0","author_url":"https://blog.hatena.ne.jp/troter/","blog_url":"https://troter.hatenablog.jp/","blog_title":"\u653e\u7267\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftroter.hatenablog.jp%2Fentry%2F20130418%2F1366247999\" title=\"DataMapper\u3067\u6bd4\u8f03\u7684\u9ad8\u901f\u306bid\u3060\u3051\u53d6\u5f97\u3059\u308b - \u653e\u7267\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Ruby"]}