{"categories":["Ruby"],"title":"DataMapper\u3067in\u306b\u7a7a\u306e\u914d\u5217\u304c\u6e21\u3055\u308c\u305f\u6642\u306b\u306a\u3093\u3068\u304b\u7a7a\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u8fd4\u3059","url":"https://troter.hatenablog.jp/entry/20130416/1366097606","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftroter.hatenablog.jp%2Fentry%2F20130416%2F1366097606\" title=\"DataMapper\u3067in\u306b\u7a7a\u306e\u914d\u5217\u304c\u6e21\u3055\u308c\u305f\u6642\u306b\u306a\u3093\u3068\u304b\u7a7a\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u8fd4\u3059 - \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>","author_url":"https://blog.hatena.ne.jp/troter/","version":"1.0","provider_url":"https://hatena.blog","image_url":null,"blog_title":"\u653e\u7267\u65e5\u8a18","height":"190","author_name":"troter","published":"2013-04-16 16:33:26","type":"rich","provider_name":"Hatena Blog","width":"100%","description":"dm-core-1.2.0\u306e\u8a71\u3067\u3059\u3002 DataMapper\u306fin\u306e\u6761\u4ef6\u306b\u914d\u5217\u3092\u6e21\u3059\u3068\u6b21\u306e\u3088\u3046\u306b\u826f\u3044\u611f\u3058\u3067\u691c\u7d22\u3057\u3066\u304f\u308c\u308b\u3002 class User include DataMapper::Resource property :id, Serial property :name, String end User.all(id: [1, 2, 3]) # SELECT \"id\", \"name\" # FROM \"users\" # WHERE \"id\" IN (1, 2, 3) # ORDER BY \"id\" User.all(id: []) # => [] # \u4e0d\u6b63\u306a\u30af\u30a8\u30ea\u306e\u305f\u3081DataMapper\u304cS\u2026","blog_url":"https://troter.hatenablog.jp/"}