Comparing version 1.1.1 to 1.1.2
@@ -15,6 +15,8 @@ # Tedium Changelog | ||
* 1.1.1 | ||
* [1.1.2](https://github.com/bretcope/tedium/releases/tag/v1.1.1) | ||
* Reset connections when returning to the connection pool. [6971a7f](https://github.com/bretcope/tedium/commit/6971a7fd5375d8226cf05ecedca2bd8b5f969f46) | ||
* [1.1.1](https://github.com/bretcope/tedium/releases/tag/v1.1.1) | ||
* Make using methods return the result from the scope function. [b2a2e22](https://github.com/bretcope/tedium/commit/b2a2e2273aa6bc83ab3cd9b9c3395ba5899c6969) | ||
* Added optional context argument to `using` methods. [#1](https://github.com/bretcope/tedium/pull/1) | ||
* 1.1.0 | ||
* [1.1.0](https://github.com/bretcope/tedium/releases/tag/v1.1.0) | ||
* Support multiple result sets. [e06b256](https://github.com/bretcope/tedium/commit/e06b25626160077267c79aefe0396b7a690ed783) | ||
@@ -24,15 +26,15 @@ | ||
* 1.0.6 | ||
* [1.0.6](https://github.com/bretcope/tedium/releases/tag/v1.0.6) | ||
* Added `TdmTransaction#bulkLoad()` shortcut method. | ||
* 1.0.5 | ||
* [1.0.5](https://github.com/bretcope/tedium/releases/tag/v1.0.5) | ||
* Added Transaction support. | ||
* 1.0.4 | ||
* [1.0.4](https://github.com/bretcope/tedium/releases/tag/v1.0.4) | ||
* Added `TdmBulkLoad#getMergeSql()`. | ||
* 1.0.3 | ||
* [1.0.3](https://github.com/bretcope/tedium/releases/tag/v1.0.3) | ||
* _No code changes._ | ||
* 1.0.2 | ||
* [1.0.2](https://github.com/bretcope/tedium/releases/tag/v1.0.2) | ||
* Expose Tedious isolation levels. | ||
* 1.0.1 | ||
* [1.0.1](https://github.com/bretcope/tedium/releases/tag/v1.0.1) | ||
* Added `Tedium.parseConnectionString()`. | ||
* 1.0.0 | ||
* Initial library version. | ||
* Initial library version. |
@@ -113,2 +113,7 @@ "use strict"; | ||
TdmConnection.prototype.reset = function * () | ||
{ | ||
yield this.tediousConnection.reset; // reset is already bound | ||
}; | ||
TdmConnection.prototype.usingTransaction = function * (isolationLevel, name, scope, ctx) | ||
@@ -115,0 +120,0 @@ { |
@@ -102,3 +102,3 @@ "use strict"; | ||
*/ | ||
TdmConnectionPool.prototype.release = function (c) | ||
TdmConnectionPool.prototype.release = function *(c) | ||
{ | ||
@@ -114,2 +114,3 @@ if (this.__connections[c.id] !== c || this.__idle.indexOf(c) !== -1) | ||
{ | ||
yield c.reset(); | ||
this.__idle.push(c); | ||
@@ -157,3 +158,3 @@ if (this.draining) | ||
var result = yield scope.call(ctx, c); | ||
this.release(c); | ||
yield this.release(c); | ||
return result; | ||
@@ -160,0 +161,0 @@ } |
{ | ||
"name": "tedium", | ||
"description": "A generator-based wrapper for Tedious to make it easier to work with.", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"author": "Bret Copeland <bret@atlantisflight.org>", | ||
@@ -6,0 +6,0 @@ "main": "./lib/Tedium.js", |
31784
614