ããªã¼ãéã空ãã¦ãã¾ãã¾ãããï¼ç¶ãã¾ãï¼æ©ã version 10.x ã«çªå ¥ãããï¼ ä»åã¯ä»£è¡¨çãªæ¤ç´¢ç¨ã¡ã½ããã§ãã Model#all ãèªãã§ããã¾ãï¼ Model#all module DataMapper module Model def all(query = {}) query = scoped_query(query) query.repository.read_many(query) end å¦çã¨ãã¦ã¯ï¼ ã¯ã¨ãªæ´æ° ã¯ã¨ãªå®è¡ (å¾è¿°ãããï¼å®éã« SQL ãçºè¡ãããã¨ã¯éããªã) ã®æµãï¼query.repository 㯠Repository ã¤ã³ã¹ã¿ã³ã¹ãè¿ãï¼Repository ã¤ã³ã¹ã¿ã³ã¹ã¯ Adapter ãæã£ã¦ãã¦ï¼å¼æ°ã¨ãã¦æ¸¡ãããã¯ã¨ãªãªãã¸ã§ã¯ãããå®éã® SQL ãçºè¡ããï¼ ã§ã¯ï¼"query" ã¯ãã£ããã©ããã£ã¦ä½ãããã®ã
{{#tags}}- {{label}}
{{/tags}}