ge ArangoDB::Statement;
use strict;
use warnings;
use utf8;
use 5.008001;
use Carp qw(croak);
use JSON ();
use Scalar::Util qw(weaken);
use ArangoDB::Cursor;
use ArangoDB::BindVars;
use ArangoDB::Cons
;
my $data = {
query => $self->{query},
count => $options->{do_count} ? JSON::true : JSON::false,
};
if ( $self->{bind_vars}->count > 0 ) {
$data->{bindVars} = $se
package ArangoDB::Collection;
use strict;
use warnings;
use utf8;
use 5.008001;
use JSON ();
use Carp qw(croak);
use Scalar::Util qw(weaken);
use Class::Accessor::Lite ( ro => [qw/id status/], );
use
goDB::ClientException;
use overload
q{""} => sub { shift->id },
fallback => 1;
my $JSON = JSON->new->utf8;
=pod
=head1 NAME
ArangoDB::Collection - An ArangoDB collection
=head1 DESCRIP
ut
sub wait_for_sync {
my $self = shift;
if ( @_ > 0 ) {
my $val = $_[0] ? JSON::true : JSON::false;
my $res = $self->_put_to_this( 'properties', { waitForSync => $val } );
5.008001;
use JSON ();
use Furl::HTTP;
use MIME::Base64;
use ArangoDB::ConnectOptions;
use ArangoDB::ServerException;
use Class::Accessor::Lite ( ro => [qw/options/] );
my $JSON = JSON->new->utf8;
my ( $self, $path, $data, $raw, $additional_headers ) = @_;
if( !$raw ){
$data = $JSON->encode( defined $data ? $data : {} );
}
my $headers = $self->_build_headers($data, $addi
my ( $self, $path, $data, $raw, $additional_headers ) = @_;
if( !$raw ){
$data = $JSON->encode( defined $data ? $data : {} );
}
my $headers = $self->_build_headers($data, $addi