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
@@ -427,9 +427,7 @@ connection.query("SELECT * FROM mysql.user")
427
427
> * `values`: *array* Array of parameter (array of array or array of object if using named placeholders).
428
428
> * `callback`: *function* Callback function with arguments (error, results, metadata).
429
429
>
430
-
> Returns a promise that :
431
-
> * resolves with a JSON object.
432
-
> * rejects with an [Error](#error).
430
+
> callback either return an [[#error|Error]] with results/metadata null or with error empty and results/metadata
433
431
434
432
Implementation depend of server type and version.
435
433
for MariaDB server version 10.2.7+, implementation use dedicated bulk protocol.
@@ -462,20 +460,20 @@ For instance,
462
460
463
461
## `connection.beginTransaction([callback])`
464
462
465
-
> * `callback`: *function* Callback function with argument [Error](../README.me#error) if any error.
463
+
> * `callback`: *function* Callback function with argument [Error](#error) if any error.
466
464
467
465
Begins a new transaction.
468
466
469
467
## `connection.commit([callback])`
470
468
471
-
> * `callback`: *function* callback function with argument [Error](../README.me##error) if any error.
469
+
> * `callback`: *function* callback function with argument [Error](#error) if any error.
472
470
473
471
Commits the current transaction, if there is one active. The Connector keeps track of the current transaction state on the server. When there isn't an active transaction, this method sends no commands to the server.
474
472
475
473
476
474
## `connection.rollback([callback])`
477
475
478
-
> * `callback`: *function* Callback function with argument [Error](../README.me##error) if any error.
476
+
> * `callback`: *function* Callback function with argument [Error](#error) if any error.
479
477
480
478
Rolls back the current transaction, if there is one active. The Connector keeps track of the current transaction state on the server. Where there isn't an active transaction, this method sends no commands to the server.
> * `options`: *JSON*, subset of [connection option documentation](#connection-options) = database / charset / password / user
515
-
> * `callback`: *function* callback function with argument [Error](../README.me##error) if any error.
513
+
> * `callback`: *function* callback function with argument [Error](#error) if any error.
516
514
517
515
Resets the connection and re-authenticates with the given credentials. This is the equivalent of creating a new connection with a new user, reusing the existing open socket.
0 commit comments