AnyEvent-Groonga
view release on metacpan or search on metacpan
lib/AnyEvent/Groonga.pm view on Meta::CPAN
use Encode;
use base qw(Class::Accessor::Fast);
our $VERSION = '0.08';
__PACKAGE__->mk_accessors($_)
for qw( protocol host port groonga_path database_path command_list debug);
sub new {
my $class = shift;
my $self = $class->SUPER::new(
{ protocol => 'gqtp',
host => 'localhost',
port => '10041',
groonga_path => which("groonga") || undef,
database_path => undef,
command_list => [
qw(
cache_limit
check
clearlock
lib/AnyEvent/Groonga/Result.pm view on Meta::CPAN
use warnings;
use base qw( Class::Accessor::Fast );
use AnyEvent::Groonga::Result::Select;
use Data::Dumper;
use Encode;
__PACKAGE__->mk_accessors($_) for qw( data posted_command );
sub new {
my $class = shift;
my $self = $class->SUPER::new( {@_} );
if ( $self->posted_command and ( $self->posted_command eq 'select' ) ) {
return AnyEvent::Groonga::Result::Select->new( data => $self->data );
}
return $self;
}
sub dump {
my $self = shift;
{
no warnings 'redefine';
( run in 1.091 second using v1.01-cache-2.11-cpan-49f99fa48dc )