File Coverage

blib/lib/Rethinkdb/Protocol.pm
Criterion Covered Total %
statement 51 51 100.0
branch n/a
condition n/a
subroutine 17 17 100.0
pod n/a
total 68 68 100.0


line stmt bran cond sub pod time code
1              
2             # DO NOT EDIT
3             # Autogenerated by mkproto.pl
4              
5             package Rethinkdb::Protocol;
6 15     15   57 use Rethinkdb::Base -base;
  15         20  
  15         122  
7              
8             has 'versionDummy' => sub { Rethinkdb::Protocol::VersionDummy->new; };
9             has 'query' => sub { Rethinkdb::Protocol::Query->new; };
10             has 'frame' => sub { Rethinkdb::Protocol::Frame->new; };
11             has 'backtrace' => sub { Rethinkdb::Protocol::Backtrace->new; };
12             has 'response' => sub { Rethinkdb::Protocol::Response->new; };
13             has 'datum' => sub { Rethinkdb::Protocol::Datum->new; };
14             has 'term' => sub { Rethinkdb::Protocol::Term->new; };
15             package Rethinkdb::Protocol::VersionDummy;
16 15     15   65 use Rethinkdb::Base -base;
  15         19  
  15         69  
17             has 'version' => sub { Rethinkdb::Protocol::Version->new; };
18             has 'protocol' => sub { Rethinkdb::Protocol::Protocol->new; };
19              
20             package Rethinkdb::Protocol::Version;
21 15     15   66 use Rethinkdb::Base -base;
  15         17  
  15         58  
22             has 'v0_1' => 0x3f61ba36;
23             has 'v0_2' => 0x723081e1;
24             has 'v0_3' => 0x5f75e83e;
25             has 'v0_4' => 0x400c2d20;
26              
27             package Rethinkdb::Protocol::Protocol;
28 15     15   69 use Rethinkdb::Base -base;
  15         19  
  15         55  
29             has 'protobuf' => 0x271ffc41;
30             has 'json' => 0x7e6970c7;
31              
32             package Rethinkdb::Protocol::Query;
33 15     15   51 use Rethinkdb::Base -base;
  15         22  
  15         63  
34             has 'queryType' => sub { Rethinkdb::Protocol::QueryType->new; };
35              
36             package Rethinkdb::Protocol::QueryType;
37 15     15   63 use Rethinkdb::Base -base;
  15         26  
  15         49  
38             has 'start' => 1;
39             has 'continue' => 2;
40             has 'stop' => 3;
41             has 'noreply_wait' => 4;
42              
43             package Rethinkdb::Protocol::Frame;
44 15     15   59 use Rethinkdb::Base -base;
  15         28  
  15         100  
45             has 'frameType' => sub { Rethinkdb::Protocol::FrameType->new; };
46              
47             package Rethinkdb::Protocol::FrameType;
48 15     15   53 use Rethinkdb::Base -base;
  15         16  
  15         49  
49             has 'pos' => 1;
50             has 'opt' => 2;
51              
52             package Rethinkdb::Protocol::Backtrace;
53 15     15   57 use Rethinkdb::Base -base;
  15         18  
  15         255  
54              
55             package Rethinkdb::Protocol::Response;
56 15     15   65 use Rethinkdb::Base -base;
  15         12  
  15         58  
57             has 'responseType' => sub { Rethinkdb::Protocol::ResponseType->new; };
58             has 'errorType' => sub { Rethinkdb::Protocol::ErrorType->new; };
59             has 'responseNote' => sub { Rethinkdb::Protocol::ResponseNote->new; };
60              
61             package Rethinkdb::Protocol::ResponseType;
62 15     15   51 use Rethinkdb::Base -base;
  15         18  
  15         52  
63             has 'success_atom' => 1;
64             has 'success_sequence' => 2;
65             has 'success_partial' => 3;
66             has 'wait_complete' => 4;
67             has 'client_error' => 16;
68             has 'compile_error' => 17;
69             has 'runtime_error' => 18;
70              
71             package Rethinkdb::Protocol::ErrorType;
72 15     15   53 use Rethinkdb::Base -base;
  15         15  
  15         48  
73             has 'internal' => 1000000;
74             has 'resource_limit' => 2000000;
75             has 'query_logic' => 3000000;
76             has 'non_existence' => 3100000;
77             has 'op_failed' => 4100000;
78             has 'op_indeterminate' => 4200000;
79             has 'user' => 5000000;
80              
81             package Rethinkdb::Protocol::ResponseNote;
82 15     15   57 use Rethinkdb::Base -base;
  15         26  
  15         65  
83             has 'sequence_feed' => 1;
84             has 'atom_feed' => 2;
85             has 'order_by_limit_feed' => 3;
86             has 'unioned_feed' => 4;
87             has 'includes_states' => 5;
88              
89             package Rethinkdb::Protocol::Datum;
90 15     15   53 use Rethinkdb::Base -base;
  15         19  
  15         49  
91             has 'datumType' => sub { Rethinkdb::Protocol::DatumType->new; };
92              
93             package Rethinkdb::Protocol::DatumType;
94 15     15   56 use Rethinkdb::Base -base;
  15         15  
  15         58  
95             has 'r_null' => 1;
96             has 'r_bool' => 2;
97             has 'r_num' => 3;
98             has 'r_str' => 4;
99             has 'r_array' => 5;
100             has 'r_object' => 6;
101             has 'r_json' => 7;
102              
103             package Rethinkdb::Protocol::Term;
104 15     15   52 use Rethinkdb::Base -base;
  15         17  
  15         49  
105             has 'termType' => sub { Rethinkdb::Protocol::TermType->new; };
106              
107             package Rethinkdb::Protocol::TermType;
108 15     15   58 use Rethinkdb::Base -base;
  15         24  
  15         55  
109             has 'datum' => 1;
110             has 'make_array' => 2;
111             has 'make_obj' => 3;
112             has 'var' => 10;
113             has 'javascript' => 11;
114             has 'uuid' => 169;
115             has 'http' => 153;
116             has 'error' => 12;
117             has 'implicit_var' => 13;
118             has 'db' => 14;
119             has 'table' => 15;
120             has 'get' => 16;
121             has 'get_all' => 78;
122             has 'eq' => 17;
123             has 'ne' => 18;
124             has 'lt' => 19;
125             has 'le' => 20;
126             has 'gt' => 21;
127             has 'ge' => 22;
128             has 'not' => 23;
129             has 'add' => 24;
130             has 'sub' => 25;
131             has 'mul' => 26;
132             has 'div' => 27;
133             has 'mod' => 28;
134             has 'floor' => 183;
135             has 'ceil' => 184;
136             has 'round' => 185;
137             has 'append' => 29;
138             has 'prepend' => 80;
139             has 'difference' => 95;
140             has 'set_insert' => 88;
141             has 'set_intersection' => 89;
142             has 'set_union' => 90;
143             has 'set_difference' => 91;
144             has 'slice' => 30;
145             has 'skip' => 70;
146             has 'limit' => 71;
147             has 'offsets_of' => 87;
148             has 'contains' => 93;
149             has 'get_field' => 31;
150             has 'keys' => 94;
151             has 'object' => 143;
152             has 'has_fields' => 32;
153             has 'with_fields' => 96;
154             has 'pluck' => 33;
155             has 'without' => 34;
156             has 'merge' => 35;
157             has 'between_deprecated' => 36;
158             has 'between' => 182;
159             has 'reduce' => 37;
160             has 'map' => 38;
161             has 'filter' => 39;
162             has 'concat_map' => 40;
163             has 'order_by' => 41;
164             has 'distinct' => 42;
165             has 'count' => 43;
166             has 'is_empty' => 86;
167             has 'union' => 44;
168             has 'nth' => 45;
169             has 'bracket' => 170;
170             has 'inner_join' => 48;
171             has 'outer_join' => 49;
172             has 'eq_join' => 50;
173             has 'zip' => 72;
174             has 'range' => 173;
175             has 'insert_at' => 82;
176             has 'delete_at' => 83;
177             has 'change_at' => 84;
178             has 'splice_at' => 85;
179             has 'coerce_to' => 51;
180             has 'type_of' => 52;
181             has 'update' => 53;
182             has 'delete' => 54;
183             has 'replace' => 55;
184             has 'insert' => 56;
185             has 'db_create' => 57;
186             has 'db_drop' => 58;
187             has 'db_list' => 59;
188             has 'table_create' => 60;
189             has 'table_drop' => 61;
190             has 'table_list' => 62;
191             has 'config' => 174;
192             has 'status' => 175;
193             has 'wait' => 177;
194             has 'reconfigure' => 176;
195             has 'rebalance' => 179;
196             has 'sync' => 138;
197             has 'index_create' => 75;
198             has 'index_drop' => 76;
199             has 'index_list' => 77;
200             has 'index_status' => 139;
201             has 'index_wait' => 140;
202             has 'index_rename' => 156;
203             has 'funcall' => 64;
204             has 'branch' => 65;
205             has 'or' => 66;
206             has 'and' => 67;
207             has 'for_each' => 68;
208             has 'func' => 69;
209             has 'asc' => 73;
210             has 'desc' => 74;
211             has 'info' => 79;
212             has 'match' => 97;
213             has 'upcase' => 141;
214             has 'downcase' => 142;
215             has 'sample' => 81;
216             has 'default' => 92;
217             has 'json' => 98;
218             has 'to_json_string' => 172;
219             has 'iso8601' => 99;
220             has 'to_iso8601' => 100;
221             has 'epoch_time' => 101;
222             has 'to_epoch_time' => 102;
223             has 'now' => 103;
224             has 'in_timezone' => 104;
225             has 'during' => 105;
226             has 'date' => 106;
227             has 'time_of_day' => 126;
228             has 'timezone' => 127;
229             has 'year' => 128;
230             has 'month' => 129;
231             has 'day' => 130;
232             has 'day_of_week' => 131;
233             has 'day_of_year' => 132;
234             has 'hours' => 133;
235             has 'minutes' => 134;
236             has 'seconds' => 135;
237             has 'time' => 136;
238             has 'monday' => 107;
239             has 'tuesday' => 108;
240             has 'wednesday' => 109;
241             has 'thursday' => 110;
242             has 'friday' => 111;
243             has 'saturday' => 112;
244             has 'sunday' => 113;
245             has 'january' => 114;
246             has 'february' => 115;
247             has 'march' => 116;
248             has 'april' => 117;
249             has 'may' => 118;
250             has 'june' => 119;
251             has 'july' => 120;
252             has 'august' => 121;
253             has 'september' => 122;
254             has 'october' => 123;
255             has 'november' => 124;
256             has 'december' => 125;
257             has 'literal' => 137;
258             has 'group' => 144;
259             has 'sum' => 145;
260             has 'avg' => 146;
261             has 'min' => 147;
262             has 'max' => 148;
263             has 'split' => 149;
264             has 'ungroup' => 150;
265             has 'random' => 151;
266             has 'changes' => 152;
267             has 'args' => 154;
268             has 'binary' => 155;
269             has 'geojson' => 157;
270             has 'to_geojson' => 158;
271             has 'point' => 159;
272             has 'line' => 160;
273             has 'polygon' => 161;
274             has 'distance' => 162;
275             has 'intersects' => 163;
276             has 'includes' => 164;
277             has 'circle' => 165;
278             has 'get_intersecting' => 166;
279             has 'fill' => 167;
280             has 'get_nearest' => 168;
281             has 'polygon_sub' => 171;
282             has 'minval' => 180;
283             has 'maxval' => 181;
284              
285             1;
286              
287             =encoding utf8
288              
289             =head1 NAME
290              
291             Rethinkdb::Protocol - Rethinkdb Protocol
292              
293             =head1 SYNOPSIS
294              
295             my $p = Rethinkdb::Protocol->new;
296             $p->term->termType->get_all;
297              
298             =head1 DESCRIPTION
299              
300             This file is automatically generated to enable this driver to serialize &
301             deserialize RethinkDB Query Langauge messages.
302              
303             =head1 ATTRIBUTES
304              
305             L implements the following attributes.
306              
307             =head2 backtrace
308              
309             Quick access to the C section of the protocol.
310              
311             =head2 datum
312              
313             Quick access to the C section of the protocol.
314              
315             =head2 frame
316              
317             Quick access to the C section of the protocol.
318              
319             =head2 query
320              
321             Quick access to the C section of the protocol.
322              
323             =head2 response
324              
325             Quick access to the C section of the protocol.
326              
327             =head2 term
328              
329             Quick access to the C section of the protocol.
330              
331             =head2 versionDummy
332              
333             Quick access to the C section of the protocol.
334              
335             =head1 SEE ALSO
336              
337             L, L
338              
339             =cut
340