DBD::Mock 㯠DBI ã®ãã©ã¤ãã®ä¸ã¤ã§ãDBI ã使ã£ãããã°ã©ã ã§æå³çãªç¶æ ãä½ãäºãåºæ¥ã¾ãã ã¨è¨ã訳ã§ã¡ã¢ç¨åº¦ã«æ¸ãã¦è¡ãã¾ãã ãã¼ã¿ãã¼ã¹ãã³ãã«ã®åå¾ use strict; use warnings; use Test::More; use DBI; plan tests => 3; my $dbh = DBI->connect('dbi:Mock:', '', '', +{ AutoCommit => 0, RaiseError => 1 }); ok($dbh, 'Create database handle'); isa_ok($dbh, 'DBI:db'); is($dbh->{Driver}->{Name}, 'Mock', 'Driver information'); ã§ãæ®éã« Database Handle ãåãã¾ãã SELECT ãã¦ãç®
{{#tags}}- {{label}}
{{/tags}}