You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pre>null - the server should not carry out routing
204
-
[] - the server should carry out routing
205
-
['address' => 'ip:port'] - the server should carry out routing according to the given routing context</pre>
206
-
* @param array $metadata Server success response metadata
184
+
*
185
+
* @param array|string $userAgentOrExtra You can use helpers\Auth to generate required array or use the deprecated approach to fill in $name, $user and $password
186
+
* @param string|null $user
187
+
* @param string|null $password
188
+
* @param array|null|bool $routing
189
+
* @param array $metadata
190
+
*
207
191
* @return bool
208
192
* @throws Exception
193
+
* @deprecated The usage of $user, $password, $routing and $metadata is deprecated. Please use helpers\Auth to generate an authentication strategy as an array.
// I don't think it will reach this point, but otherwise I've to end method with return
214
+
thrownewException('INIT message failed');
223
215
}
224
216
225
217
/**
226
218
* Send HELLO message
227
-
* @internal INIT alias
228
-
* @version >=3
229
-
* @param string $name
219
+
*
220
+
* @param array|string $userAgentOrExtra You can use helpers\Auth to generate required array or use the deprecated approach to fill in $name, $user and $password
<pre>null - the server should not carry out routing
234
-
[] - the server should carry out routing
235
-
['address' => 'ip:port'] - the server should carry out routing according to the given routing context</pre>
236
-
* @param array $metadata Server success response metadata
223
+
* @param array|null|bool $routing
224
+
* @param array $metadata
225
+
*
237
226
* @return bool
238
227
* @throws Exception
228
+
* @deprecated The usage of $user, $password, $routing and $metadata is deprecated. Please use helpers\Auth to generate an authentication strategy as an array.
<pre>The bookmarks is a list of strings containg some kind of bookmark identification e.g [“neo4j-bookmark-transaction:1”, “neo4j-bookmark-transaction:2”]
251
-
The tx_timeout is an integer in that specifies a transaction timeout in ms.
252
-
The tx_metadata is a dictionary that can contain some metadata information, mainly used for logging.
253
-
The mode specifies what kind of server the RUN message is targeting. For write access use "w" and for read access use "r". Defaults to write access if no mode is sent.
254
-
The db specifies the database name for multi-database to select where the transaction takes place. If no db is sent or empty string it implies that it is the default database.</pre>
242
+
* <pre>The bookmarks is a list of strings containg some kind of bookmark identification e.g [“neo4j-bookmark-transaction:1”, “neo4j-bookmark-transaction:2”]
243
+
* The tx_timeout is an integer in that specifies a transaction timeout in ms.
244
+
* The tx_metadata is a dictionary that can contain some metadata information, mainly used for logging.
245
+
* The mode specifies what kind of server the RUN message is targeting. For write access use "w" and for read access use "r". Defaults to write access if no mode is sent.
246
+
* The db specifies the database name for multi-database to select where the transaction takes place. If no db is sent or empty string it implies that it is the default database.</pre>
@@ -264,13 +256,13 @@ public function run(string $statement, array $parameters = [], array $extra = []
264
256
265
257
/**
266
258
* Send PULL_ALL message
267
-
* @version <4
268
259
* @param int $n The n specifies how many records to fetch. n=-1 will fetch all records.
269
260
* @param int $qid The qid (query identification) specifies the result of which statement the operation should be carried out. (Explicit Transaction only). qid=-1 can be used to denote the last executed statement and if no ``.
@@ -279,27 +271,27 @@ public function pullAll(int $n = -1, int $qid = -1)
279
271
280
272
/**
281
273
* Send PULL message
282
-
* @version >=4
283
-
* @internal PULL_ALL alias
284
274
* @param int $n The n specifies how many records to fetch. n=-1 will fetch all records.
285
275
* @param int $qid The qid (query identification) specifies the result of which statement the operation should be carried out. (Explicit Transaction only). qid=-1 can be used to denote the last executed statement and if no ``.
286
276
* @return array Array of records. Last array element is success message.
* @param int $n The n specifies how many records to throw away. n=-1 will throw away all records.
298
289
* @param int $qid The qid (query identification) specifies the result of which statement the operation should be carried out. (Explicit Transaction only). qid=-1 can be used to denote the last executed statement and if no ``.
@@ -308,12 +300,12 @@ public function discardAll(int $n = -1, int $qid = -1)
308
300
309
301
/**
310
302
* Send DISCARD message
311
-
* @version >=4
312
-
* @internal DISCARD_ALL alias
313
303
* @param int $n The n specifies how many records to throw away. n=-1 will throw away all records.
314
304
* @param int $qid The qid (query identification) specifies the result of which statement the operation should be carried out. (Explicit Transaction only). qid=-1 can be used to denote the last executed statement and if no ``.
<pre>The bookmarks is a list of strings containg some kind of bookmark identification e.g [“neo4j-bookmark-transaction:1”, “neo4j-bookmark-transaction:2”]
328
-
The tx_timeout is an integer in that specifies a transaction timeout in ms.
329
-
The tx_metadata is a dictionary that can contain some metadata information, mainly used for logging.
330
-
The mode specifies what kind of server the RUN message is targeting. For write access use "w" and for read access use "r". Defaults to write access if no mode is sent.
331
-
The db specifies the database name for multi-database to select where the transaction takes place. If no db is sent or empty string it implies that it is the default database.</pre>
318
+
* <pre>The bookmarks is a list of strings containg some kind of bookmark identification e.g [“neo4j-bookmark-transaction:1”, “neo4j-bookmark-transaction:2”]
319
+
* The tx_timeout is an integer in that specifies a transaction timeout in ms.
320
+
* The tx_metadata is a dictionary that can contain some metadata information, mainly used for logging.
321
+
* The mode specifies what kind of server the RUN message is targeting. For write access use "w" and for read access use "r". Defaults to write access if no mode is sent.
322
+
* The db specifies the database name for multi-database to select where the transaction takes place. If no db is sent or empty string it implies that it is the default database.</pre>
332
323
* @return bool
333
324
* @throws Exception
325
+
* @version >=3
334
326
*/
335
327
publicfunctionbegin(array$extra = []): bool
336
328
{
@@ -341,9 +333,9 @@ public function begin(array $extra = []): bool
341
333
342
334
/**
343
335
* Send COMMIT message
344
-
* @version >=3
345
336
* @return bool
346
337
* @throws Exception
338
+
* @version >=3
347
339
*/
348
340
publicfunctioncommit(): bool
349
341
{
@@ -354,9 +346,9 @@ public function commit(): bool
354
346
355
347
/**
356
348
* Send ROLLBACK message
357
-
* @version >=3
358
349
* @return bool
359
350
* @throws Exception
351
+
* @version >=3
360
352
*/
361
353
publicfunctionrollback(): bool
362
354
{
@@ -379,11 +371,11 @@ public function reset(): bool
379
371
380
372
/**
381
373
* Send ROUTE message to instruct the server to return the current routing table.
382
-
* @version >=4.3 In previous versions there was no explicit message for this and a procedure had to be invoked using Cypher through the RUN and PULL messages.
383
374
* @param array|null $routing
384
375
* @param array $bookmarks
385
376
* @param array|string|null $extra
386
377
* @return array|null
378
+
* @version >=4.3 In previous versions there was no explicit message for this and a procedure had to be invoked using Cypher through the RUN and PULL messages.
0 commit comments