/** * @deprecated Replaced by ``Connection.getTransportOptions()`` and will be removed in the * next major version. * @description Returns conn property from iConn object. * @returns {object} the conn property from iConn object. */ getConnection() { iConnDeprecate('As of v1.0, \'iConn.getConnection()\' is deprecated. Please use \'Connection.getTransportOptions()\' instead'); return this.connection.getTransportOptions(); }
iConnDeprecate('As of v1.0, class \'iConn\' is deprecated. Please use \'Connection\' instead.');
/** * @deprecated Replaced by ``Connection.debug()`` and will be removed in the next major version. * @description Enables or disables the verbose mode for debugging. * @param {boolean} [flag] - Whether to enable verbose output. * @returns {boolean} The current state of the debug flag. */ debug(flag) { iConnDeprecate('As of v1.0, \'iConn.debug()\' is deprecated. Please use \'Connection.debug()\' instead'); return this.connection.debug(flag); }
/** * @deprecated Replaced by ``Connection.add()`` and will be removed in the next major version. * @description Adds XML to the command list. When an instance of iPgm or iSql is passed * ``.toXML()`` is invoked to return the underlying xml. * @param {string|object} xml - The xml to add to the command list. */ add(xml) { iConnDeprecate('As of v1.0, \'iConn.add()\' is deprecated. Please use \'Connection.add()\' instead'); this.connection.add(xml); }
/** * @callback runCallbackDeprecated * @param {string} xmlOutput - the xml output. */ /** * @deprecated Replaced by ``Connection.run()`` and will be removed in the next major version. * @description Invokes transport with XML generated from joining the command list. * Note the command list is cleared after calling this function. * Once the transport is complete the user provided callback function is called. * @param {runCallbackDeprecated} callback - The callback function. */ run(callback) { iConnDeprecate('As of v1.0, \'iConn.run()\' is deprecated. Please use \'Connection.run()\' instead'); this.connection.run(callback); }