GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MANGO::PROTOCOL (3)

.ds Aq ’

NAME

Mango::Protocol - The MongoDB wire protocol

CONTENTS

SYNOPSIS



  use Mango::Protocol;

  my $protocol = Mango::Protocol->new;
  my $bytes    = $protocol->query(1, foo, {}, 0, 10, {}, {});



DESCRIPTION

Mango::Protocol is a minimalistic implementation of the MongoDB wire protocol.

METHODS

Mango::Protocol inherits all methods from Mojo::Base and implements the following new ones.

    build_get_more



  my $bytes = $protocol->build_get_more($id, $name, $return, $cursor);



Build message for GET_MORE operation.

    build_kill_cursors



  my $bytes = $protocol->build_kill_cursors($id, @ids);



Build message for KILL_CURSORS operation.

    build_query



  my $bytes = $protocol->build_query($id, $name, $flags, $skip, $return,
    $query, $fields);



Build message for QUERY operation.

    command_error



  my $err = $protocol->command_error($doc);



Check document for command error.

    next_id



  my $id = $protocol->next_id(23);



Generate next id.

    parse_reply



  my $reply = $protocol->parse_reply(\$str);



Extract and parse reply message.

    query_failure



  my $err = $protocol->query_failure($reply);



Check reply for query failure.

    write_error



  my $err = $protocol->write_error($doc);



Check document for write error.

SEE ALSO

Mango, Mojolicious::Guides, <http://mojolicio.us>.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MANGO::PROTOCOL (3) 2015-12-02

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.