We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5927562 commit d1e8ad5Copy full SHA for d1e8ad5
promise.js
@@ -180,6 +180,24 @@ PromiseConnection.prototype.prepare = function(options) {
180
});
181
};
182
183
+PromiseConnection.prototype.changeUser = function(options) {
184
+ var c = this.connection;
185
+ const localErr = new Error();
186
+ return new this.Promise(function(resolve, reject) {
187
+ c.changeUser(options, function(err) {
188
+ if (err) {
189
+ localErr.message = err.message;
190
+ localErr.code = err.code;
191
+ localErr.errno = err.errno;
192
+ localErr.sqlState = err.sqlState;
193
+ reject(localErr);
194
+ } else {
195
+ resolve();
196
+ }
197
+ });
198
199
+};
200
+
201
function PromisePreparedStatementInfo(statement, promiseImpl) {
202
this.statement = statement;
203
this.Promise = promiseImpl;
0 commit comments