gremlin 3.5.2 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +154 -0
- package/.prettierrc.js +29 -0
- package/Gruntfile.js +15 -16
- package/doc/AnonymousTraversalSource.html +4 -4
- package/doc/Authenticator.html +1 -1
- package/doc/Bytecode.html +6 -6
- package/doc/Client.html +137 -63
- package/doc/Connection.html +88 -4
- package/doc/DriverRemoteConnection.html +10 -10
- package/doc/EdgeLabelVerificationStrategy.html +1 -1
- package/doc/Graph.html +1 -1
- package/doc/GraphSON2Reader.html +3 -3
- package/doc/GraphSON2Writer.html +2 -2
- package/doc/GraphSON3Reader.html +2 -2
- package/doc/GraphSON3Writer.html +2 -2
- package/doc/GraphTraversal.html +106 -106
- package/doc/GraphTraversalSource.html +18 -18
- package/doc/HaltedTraverserStrategy.html +2 -2
- package/doc/MatchAlgorithmStrategy.html +2 -2
- package/doc/P.html +12 -12
- package/doc/PartitionStrategy.html +2 -2
- package/doc/Path.html +1 -1
- package/doc/PlainTextSaslAuthenticator.html +1 -1
- package/doc/ProductiveByStrategy.html +1 -1
- package/doc/RemoteConnection.html +9 -9
- package/doc/RemoteStrategy.html +3 -3
- package/doc/RemoteTraversal.html +2 -2
- package/doc/ReservedKeysVerificationStrategy.html +2 -2
- package/doc/ResponseError.html +1 -1
- package/doc/ResultSet.html +6 -6
- package/doc/SaslAuthenticator.html +1 -1
- package/doc/SaslMechanismBase.html +1 -1
- package/doc/SaslMechanismPlain.html +5 -5
- package/doc/SeedStrategy.html +2 -2
- package/doc/SubgraphStrategy.html +2 -2
- package/doc/TextP.html +9 -9
- package/doc/Transaction.html +5 -5
- package/doc/Translator.html +1 -1
- package/doc/TraversalStrategies.html +4 -4
- package/doc/TraversalStrategy.html +2 -2
- package/doc/TypeSerializer.html +1 -1
- package/doc/driver_auth_authenticator.js.html +3 -3
- package/doc/driver_auth_mechanisms_sasl-mechanism-base.js.html +2 -2
- package/doc/driver_auth_mechanisms_sasl-mechanism-plain.js.html +25 -16
- package/doc/driver_auth_plain-text-sasl-authenticator.js.html +6 -6
- package/doc/driver_auth_sasl-authenticator.js.html +2 -2
- package/doc/driver_client.js.html +69 -23
- package/doc/driver_connection.js.html +107 -88
- package/doc/driver_driver-remote-connection.js.html +11 -10
- package/doc/driver_remote-connection.js.html +3 -4
- package/doc/driver_response-error.js.html +4 -3
- package/doc/driver_result-set.js.html +3 -3
- package/doc/global.html +199 -2
- package/doc/index.html +1 -1
- package/doc/process_anonymous-traversal.js.html +3 -3
- package/doc/process_bytecode.js.html +10 -8
- package/doc/process_graph-traversal.js.html +193 -142
- package/doc/process_transaction.js.html +15 -8
- package/doc/process_translator.js.html +13 -10
- package/doc/process_traversal-strategy.js.html +59 -53
- package/doc/process_traversal.js.html +100 -107
- package/doc/structure_graph.js.html +6 -6
- package/doc/structure_io_graph-serializer.js.html +64 -17
- package/doc/structure_io_type-serializers.js.html +85 -88
- package/index.js +5 -5
- package/lib/driver/auth/authenticator.js +2 -2
- package/lib/driver/auth/mechanisms/sasl-mechanism-base.js +1 -1
- package/lib/driver/auth/mechanisms/sasl-mechanism-plain.js +24 -15
- package/lib/driver/auth/plain-text-sasl-authenticator.js +5 -5
- package/lib/driver/auth/sasl-authenticator.js +1 -1
- package/lib/driver/client.js +68 -22
- package/lib/driver/connection.js +106 -87
- package/lib/driver/driver-remote-connection.js +10 -9
- package/lib/driver/remote-connection.js +2 -3
- package/lib/driver/response-error.js +2 -2
- package/lib/driver/result-set.js +1 -2
- package/lib/process/anonymous-traversal.js +1 -2
- package/lib/process/bytecode.js +9 -7
- package/lib/process/graph-traversal.js +191 -141
- package/lib/process/transaction.js +13 -7
- package/lib/process/translator.js +11 -9
- package/lib/process/traversal-strategy.js +57 -52
- package/lib/process/traversal.js +99 -106
- package/lib/structure/graph.js +5 -5
- package/lib/structure/io/graph-serializer.js +62 -16
- package/lib/structure/io/type-serializers.js +84 -87
- package/lib/utils.js +15 -10
- package/package.json +10 -5
package/doc/global.html
CHANGED
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
<dt class="tag-source">Source:</dt>
|
|
154
154
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
155
|
-
<a href="process_graph-traversal.js.html">process/graph-traversal.js</a>, <a href="process_graph-traversal.js.html#
|
|
155
|
+
<a href="process_graph-traversal.js.html">process/graph-traversal.js</a>, <a href="process_graph-traversal.js.html#line1355">line 1355</a>
|
|
156
156
|
</li></ul></dd>
|
|
157
157
|
|
|
158
158
|
|
|
@@ -174,6 +174,203 @@
|
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
|
|
177
|
+
<h3 class="subsection-title">Type Definitions</h3>
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
<h4 class="name" id="RequestOptions">RequestOptions</h4>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
<div class="description">
|
|
187
|
+
Configuration specific to the current request.
|
|
188
|
+
</div>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
<h5>Type:</h5>
|
|
193
|
+
<ul>
|
|
194
|
+
<li>
|
|
195
|
+
|
|
196
|
+
<span class="param-type">Object</span>
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
</li>
|
|
200
|
+
</ul>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
<h5 class="subsection-title">Properties:</h5>
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
<table class="props">
|
|
211
|
+
<thead>
|
|
212
|
+
<tr>
|
|
213
|
+
|
|
214
|
+
<th>Name</th>
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
<th>Type</th>
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
<th class="last">Description</th>
|
|
224
|
+
</tr>
|
|
225
|
+
</thead>
|
|
226
|
+
|
|
227
|
+
<tbody>
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
<tr>
|
|
231
|
+
|
|
232
|
+
<td class="name"><code>requestId</code></td>
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
<td class="type">
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
<span class="param-type">String</span>
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
</td>
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
<td class="description last">User specified request identifier which must be a UUID.</td>
|
|
249
|
+
</tr>
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<tr>
|
|
254
|
+
|
|
255
|
+
<td class="name"><code>batchSize</code></td>
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
<td class="type">
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
<span class="param-type">Number</span>
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
</td>
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
<td class="description last">Indicates whether the Power component is present.</td>
|
|
272
|
+
</tr>
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
<tr>
|
|
277
|
+
|
|
278
|
+
<td class="name"><code>userAgent</code></td>
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
<td class="type">
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
<span class="param-type">String</span>
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
</td>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
<td class="description last">The size in which the result of a request is to be 'batched' back to the client</td>
|
|
295
|
+
</tr>
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
<tr>
|
|
300
|
+
|
|
301
|
+
<td class="name"><code>evaluationTimeout</code></td>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
<td class="type">
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
<span class="param-type">Number</span>
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
</td>
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
<td class="description last">The timeout for the evaluation of the request.</td>
|
|
318
|
+
</tr>
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
</tbody>
|
|
322
|
+
</table>
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
<dl class="details">
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
<dt class="tag-source">Source:</dt>
|
|
355
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
356
|
+
<a href="driver_client.js.html">driver/client.js</a>, <a href="driver_client.js.html#line75">line 75</a>
|
|
357
|
+
</li></ul></dd>
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
</dl>
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
177
374
|
|
|
178
375
|
|
|
179
376
|
</article>
|
|
@@ -192,7 +389,7 @@
|
|
|
192
389
|
<br class="clear">
|
|
193
390
|
|
|
194
391
|
<footer>
|
|
195
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.
|
|
392
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Apr 11 2022 07:21:14 GMT-0400 (Eastern Daylight Time)
|
|
196
393
|
</footer>
|
|
197
394
|
|
|
198
395
|
<script> prettyPrint(); </script>
|
package/doc/index.html
CHANGED
|
@@ -176,7 +176,7 @@ thus for early testing purposes only.</p></article>
|
|
|
176
176
|
<br class="clear">
|
|
177
177
|
|
|
178
178
|
<footer>
|
|
179
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.
|
|
179
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Apr 11 2022 07:21:14 GMT-0400 (Eastern Daylight Time)
|
|
180
180
|
</footer>
|
|
181
181
|
|
|
182
182
|
<script> prettyPrint(); </script>
|
|
@@ -58,7 +58,6 @@ const Graph = require('../structure/graph').Graph;
|
|
|
58
58
|
* instance or a <code>RemoteConnection</code>.
|
|
59
59
|
*/
|
|
60
60
|
class AnonymousTraversalSource {
|
|
61
|
-
|
|
62
61
|
/**
|
|
63
62
|
* Creates a new instance of {@code AnonymousTraversalSource}.
|
|
64
63
|
* @param {Function} [traversalSourceClass] Optional {@code GraphTraversalSource} constructor.
|
|
@@ -103,7 +102,8 @@ class AnonymousTraversalSource {
|
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
104
|
|
|
106
|
-
module.exports = AnonymousTraversalSource
|
|
105
|
+
module.exports = AnonymousTraversalSource;
|
|
106
|
+
</code></pre>
|
|
107
107
|
</article>
|
|
108
108
|
</section>
|
|
109
109
|
|
|
@@ -119,7 +119,7 @@ module.exports = AnonymousTraversalSource;</code></pre>
|
|
|
119
119
|
<br class="clear">
|
|
120
120
|
|
|
121
121
|
<footer>
|
|
122
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.
|
|
122
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Apr 11 2022 07:21:14 GMT-0400 (Eastern Daylight Time)
|
|
123
123
|
</footer>
|
|
124
124
|
|
|
125
125
|
<script> prettyPrint(); </script>
|
|
@@ -61,8 +61,7 @@ class Bytecode {
|
|
|
61
61
|
if (!toClone) {
|
|
62
62
|
this.sourceInstructions = [];
|
|
63
63
|
this.stepInstructions = [];
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
64
|
+
} else {
|
|
66
65
|
this.sourceInstructions = [...toClone.sourceInstructions];
|
|
67
66
|
this.stepInstructions = [...toClone.stepInstructions];
|
|
68
67
|
}
|
|
@@ -107,9 +106,12 @@ class Bytecode {
|
|
|
107
106
|
instruction[0] = name;
|
|
108
107
|
for (let i = 1; i < length; i++) {
|
|
109
108
|
const val = values[i - 1];
|
|
110
|
-
if (val instanceof Traversal && val.graph != null)
|
|
111
|
-
throw new Error(
|
|
112
|
-
|
|
109
|
+
if (val instanceof Traversal && val.graph != null) {
|
|
110
|
+
throw new Error(
|
|
111
|
+
`The child traversal of ${val} was not spawned anonymously - use ` +
|
|
112
|
+
'the __ class rather than a TraversalSource to construct the child traversal',
|
|
113
|
+
);
|
|
114
|
+
}
|
|
113
115
|
instruction[i] = val;
|
|
114
116
|
}
|
|
115
117
|
return instruction;
|
|
@@ -141,8 +143,8 @@ class Bytecode {
|
|
|
141
143
|
*/
|
|
142
144
|
static get GraphOp() {
|
|
143
145
|
return {
|
|
144
|
-
commit: Bytecode._createGraphOp(
|
|
145
|
-
rollback: Bytecode._createGraphOp(
|
|
146
|
+
commit: Bytecode._createGraphOp('tx', ['commit']),
|
|
147
|
+
rollback: Bytecode._createGraphOp('tx', ['rollback']),
|
|
146
148
|
};
|
|
147
149
|
}
|
|
148
150
|
}
|
|
@@ -164,7 +166,7 @@ module.exports = Bytecode;
|
|
|
164
166
|
<br class="clear">
|
|
165
167
|
|
|
166
168
|
<footer>
|
|
167
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.
|
|
169
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Apr 11 2022 07:21:14 GMT-0400 (Eastern Daylight Time)
|
|
168
170
|
</footer>
|
|
169
171
|
|
|
170
172
|
<script> prettyPrint(); </script>
|