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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Bolt
2
2
Bolt protocol library over TCP socket. Bolt protocol is primary used for communication with [Neo4j](https://neo4j.com/) Graph database. The documentation is available at [https://7687.org/](https://7687.org/).
@@ -258,7 +249,8 @@ public function hello(string $name, string $user, string $password, array $routi
258
249
The tx_metadata is a dictionary that can contain some metadata information, mainly used for logging.
259
250
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.
260
251
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>
@@ -272,7 +264,8 @@ public function run(string $statement, array $parameters = [], array $extra = []
272
264
* @version <4
273
265
* @param int $n The n specifies how many records to fetch. n=-1 will fetch all records.
274
266
* @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 ``.
275
-
* @return mixed Array of records or false on error. Last array element is success message.
267
+
* @return array
268
+
* @throws Exception
276
269
*/
277
270
publicfunctionpullAll(int$n = -1, int$qid = -1)
278
271
{
@@ -287,7 +280,8 @@ public function pullAll(int $n = -1, int $qid = -1)
287
280
* @internal PULL_ALL alias
288
281
* @param int $n The n specifies how many records to fetch. n=-1 will fetch all records.
289
282
* @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 ``.
290
-
* @return mixed Array of records or false on error. Last array element is success message.
283
+
* @return array Array of records. Last array element is success message.
284
+
* @throws Exception
291
285
*/
292
286
publicfunctionpull(int$n = -1, int$qid = -1)
293
287
{
@@ -300,6 +294,7 @@ public function pull(int $n = -1, int $qid = -1)
300
294
* @param int $n The n specifies how many records to throw away. n=-1 will throw away all records.
301
295
* @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 ``.
@@ -315,6 +310,7 @@ public function discardAll(int $n = -1, int $qid = -1)
315
310
* @param int $n The n specifies how many records to throw away. n=-1 will throw away all records.
316
311
* @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 ``.
@@ -330,6 +326,7 @@ public function discard(int $n = -1, int $qid = -1): bool
330
326
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
327
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
328
* @return bool
329
+
* @throws Exception
333
330
*/
334
331
publicfunctionbegin(array$extra = []): bool
335
332
{
@@ -341,6 +338,7 @@ public function begin(array $extra = []): bool
341
338
/**
342
339
* Send COMMIT message
343
340
* @return bool
341
+
* @throws Exception
344
342
*/
345
343
publicfunctioncommit(): bool
346
344
{
@@ -352,6 +350,7 @@ public function commit(): bool
352
350
/**
353
351
* Send ROLLBACK message
354
352
* @return bool
353
+
* @throws Exception
355
354
*/
356
355
publicfunctionrollback(): bool
357
356
{
@@ -363,6 +362,7 @@ public function rollback(): bool
363
362
/**
364
363
* Send RESET message
365
364
* @return bool
365
+
* @throws Exception
366
366
*/
367
367
publicfunctionreset(): bool
368
368
{
@@ -371,24 +371,6 @@ public function reset(): bool
0 commit comments