my $schema = MyTest::Schema->connect($dsn, $user, $auth, $attrs) or die("error connect: $!"); $schema->storage->debug(1); my $root = $schema->resultset('Nested')->create({ ident => 'root', info => 'some_info' });