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