Otogiri::Plugin::DeflateSwitcher - Otogiri plugin to enable/disable deflate
use Otogiri;
use Otogiri::Plugin::DeflateSwitcher;
my $db = Otogiri->new($connect_info);
$db->disable_deflate;
my $row = $db->insert(...); # deflate is disabled
$db->enable_deflate;
$row = $db->insert(...); # deflate is enabled
# using guard
my $guard1 = $db->enable_deflate;
{
my $guard2 = $db->disable_deflate;
# deflate is disabled
} #dismiss $guard2
# deflate is enabled again
Otogiri::Plugin::DeflateSwitcher is plugin for Otogiri to enable or disable deflate feature
Copyright (C) Takuya Tsuchida.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Takuya Tsuchida tsucchi@cpan.org