Net::Groonga::HTTP - Client library for Groonga httpd.
use Net::Groonga::HTTP;
my $groonga = Net::Groonga::HTTP->new(
end_point => 'http://127.0.0.1:10041/d/',
);
my $res = $groonga->status();
use Data::Dumper; warn Dumper($res);
Net::Groonga::HTTP is a client library for Groonga http server.
Groonga is a fast full text search engine. Please look
<http://groonga.org/>.
Net::Groonga::HTT->new(%args);
You can create instance with following arguments:
- end_point :Str
- API end point URL for Groonga httpd.
Example:
Net::Groonga::HTTP->new(end_point => 'http://127.0.0.1:10041/d/');
- ua : Furl
- Instance of Furl to access Groonga httpd.
Example:
Net::Groonga::HTTP->new(ua => Furl->new());
- "$groonga->call($function, %args)"
- Call a http server. Function name is $function.
Pass the %args.
This method returns instance of
Net::Groonga::HTTP::Response.
- $groonga->load(%args)
-
$groonga->load(
table => 'Entry',
values => \@values,
);
Load the data to database. This method encodes values
to JSON automatically, if it's arrayref.
- $groonga->select(%args)
- $groonga->status(%args)
- $groonga->select(%args)
- $groonga->delete(%args)
- $groonga->column_create(%args)
- $groonga->dump(%args)
- You can use these methods if you are lazy.
Copyright (C) tokuhirom.
This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
tokuhirom <tokuhirom@gmail.com>