package Net::Presto;
use Moo;
use Furl;
use Carp qw(confess);
use Scalar::Util qw(blessed);
use JSON::XS;
our $VERSION = "0.02";
use Net::Presto::Statement;
has protocol => (
is => 'ro',
is
s, $query);
confess $response->status_line unless $response->is_success;
my $res = decode_json $response->content;
Net::Presto::Statement->create(
furl => $self->furl,
h
package Net::Presto::Statement;
use Moo;
use JSON::XS;
use Carp qw(confess);
use constant DEBUG => $ENV{PERL_PRESTO_DEBUG} ? 1 : 0;
has furl => (
is => 'ro',
required => 1,
);
has headers =
url " . $response->content || '' if DEBUG;
if ($response->content) {
my $res = decode_json $response->content;
$self->_set_state($res);
return $res;
} else {
$s