https://metacpan.org/module/DBIx::FixtureLoader ãããã¾ãã©ããåããããªã®ä½ã£ã¦ããã§ããããã©ããã¹ãã¨ãã§ããã£ã¨fixture èªã¿è¾¼ãã§Insertãã¦æ¬²ããçãªè¦ä»¶ã§ä½ãã¾ããã使ãæ¹ã¯ä»¥ä¸ã®æ§ãªæãã use DBI; use DBIx::FixtureLoader; my $dbh = DBI->connect(...); my $loader = DBIx::FixtureLoader->new(dbh => $dbh); $loader->load_fixture('item.csv'); $loader->load_fixture('item-2.yaml', update => 1); # ON DUPLICATE KEY UPDATE ORMéä¾åã§$dbhã渡ãã ãã§ç°¡åã«ã使ãããã ãã¾ãã CSVãYAMLãJ
{{#tags}}- {{label}}
{{/tags}}