æ¢å DB ãã以ä¸ã®ã¯ã³ã©ã¤ãã¼ä¸çºã§ DBIx::Class ã® Schema ãçæã§ãã $ perl -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:./lib -e 'make_schema_at "Hoge::Schema", {relationships => 1, debug => 1}, ["dbi:mysql:hoge","user","password"]' ããããã ã¾ããã¯ã©ã¹ãä½ããããã£ã¬ã¯ããªä»è¿ã«ç§»å ãã£ãã®ã³ãã³ãã® dump_to_dir: ã®ç®æã«ã¯ã©ã¹ããªã¼ã®èµ·ç¹ã¨ãªããã£ã¬ã¯ããªãæå® make_schema_at ã®ç¬¬ä¸å¼æ°ã«çæãã Schema ã®ããã±ã¼ã¸åãæå® å¤é¨ãã¼å¶ç´ã¨ããèæ ®ã㦠has_many ã¨ã belongs_to ã¨ããèªåã§è¨å®ãã¦æ¬²ããå ´å
{{#tags}}- {{label}}
{{/tags}}