Otogiri::Plugin::InflateSwitcher - Otogiri plugin to enable/disable inflate
use Otogiri;
use Otogiri::Plugin::InflateSwitcher;
my $db = Otogiri->new($connect_info);
$db->disable_inflate;
my $row = $db->single(...); # inflate is disabled
$db->enable_inflate;
$row = $db->single(...); # inflate is enabled
# using guard
my $guard1 = $db->enable_inflate;
{
my $guard2 = $db->disable_inflate;
# inflate is disabled
} #dismiss $guard2
# inflate is enabled again
Otogiri::Plugin::InflateSwitcher is plugin for Otogiri to enable or disable inflate 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