first prototype of external storage and tests
[dbsrgits/DBIx-Class-Fixtures.git] / lib / DBIx / Class / Fixtures / DBI / mysql.pm
CommitLineData
1ac1b0d7 1package DBIx::Class::Fixtures::DBI::mysql;
2
3use strict;
4use warnings;
5use base qw/DBIx::Class::Fixtures::DBI/;
6
7sub do_insert {
8 my ($class, $schema, $sub) = @_;
9
10 $schema->txn_do(
11 sub {
12 eval { $schema->storage->dbh->do('SET foreign_key_checks=0') };
13 $sub->();
14 eval { $schema->storage->dbh->do('SET foreign_key_checks=1') };
15 }
16 );
17}
18
191;