Comparing version 0.2.4 to 0.3.0
@@ -287,3 +287,3 @@ // Generated by CoffeeScript 1.7.1 | ||
Connection.prototype.defaultConfig = function() { | ||
var _base, _base1, _base10, _base11, _base2, _base3, _base4, _base5, _base6, _base7, _base8, _base9; | ||
var _base, _base1, _base10, _base11, _base12, _base2, _base3, _base4, _base5, _base6, _base7, _base8, _base9; | ||
(_base = this.config).options || (_base.options = {}); | ||
@@ -305,2 +305,3 @@ (_base1 = this.config.options).textsize || (_base1.textsize = DEFAULT_TEXTSIZE); | ||
} | ||
(_base12 = this.config.options).connectionIsolationLevel || (_base12.connectionIsolationLevel = ISOLATION_LEVEL.READ_COMMITTED); | ||
if (!this.config.options.port && !this.config.options.instanceName) { | ||
@@ -719,3 +720,3 @@ return this.config.options.port = DEFAULT_PORT; | ||
Connection.prototype.getInitialSql = function() { | ||
return 'set textsize ' + this.config.options.textsize + 'set quoted_identifier on\nset arithabort off\nset numeric_roundabort off\nset ansi_warnings on\nset ansi_padding on\nset ansi_nulls on\nset concat_null_yields_null on\nset cursor_close_on_commit off\nset implicit_transactions off\nset language us_english\nset dateformat mdy\nset datefirst 7\nset transaction isolation level read committed'; | ||
return "set textsize " + this.config.options.textsize + "\nset quoted_identifier on\nset arithabort off\nset numeric_roundabort off\nset ansi_warnings on\nset ansi_padding on\nset ansi_nulls on\nset concat_null_yields_null on\nset cursor_close_on_commit off\nset implicit_transactions off\nset language us_english\nset dateformat mdy\nset datefirst 7\nset transaction isolation level " + (this.getIsolationLevelText(this.config.options.connectionIsolationLevel)); | ||
}; | ||
@@ -853,2 +854,17 @@ | ||
Connection.prototype.getIsolationLevelText = function(isolationLevel) { | ||
switch (isolationLevel) { | ||
case ISOLATION_LEVEL.READ_UNCOMMITTED: | ||
return 'read uncommitted'; | ||
case ISOLATION_LEVEL.REPEATABLE_READ: | ||
return 'repeatable read'; | ||
case ISOLATION_LEVEL.SERIALIZABLE: | ||
return 'serializable'; | ||
case ISOLATION_LEVEL.SNAPSHOT: | ||
return 'snapshot'; | ||
default: | ||
return 'read committed'; | ||
} | ||
}; | ||
return Connection; | ||
@@ -855,0 +871,0 @@ |
@@ -30,2 +30,7 @@ // Generated by CoffeeScript 1.7.1 | ||
colName = buffer.readBVarchar(); | ||
if (options.camelCaseColumns) { | ||
colName = colName.replace(/^[A-Z]/, function(s) { | ||
return s.toLowerCase(); | ||
}); | ||
} | ||
column = { | ||
@@ -32,0 +37,0 @@ userType: metadata.userType, |
@@ -29,3 +29,3 @@ { | ||
], | ||
"version": "0.2.4", | ||
"version": "0.3.0", | ||
"main": "./lib/tedious.js", | ||
@@ -49,5 +49,7 @@ "repository": { | ||
"scripts": { | ||
"test": "scripts/tests-unit", | ||
"prepublish": "scripts/build" | ||
"test": "node_modules/.bin/nodeunit test/register-coffee.js test/unit/ test/unit/token/ test/unit/tracking-buffer", | ||
"test-all": "node_modules/.bin/nodeunit test/register-coffee.js test/unit/ test/unit/token/ test/unit/tracking-buffer test/integration/", | ||
"test-integration": "node_modules/.bin/nodeunit test/register-coffee.js test/integration/", | ||
"prepublish": "node_modules/.bin/coffee scripts/build.coffee" | ||
} | ||
} |
@@ -7,2 +7,10 @@ # Tedious (node implementation of TDS) | ||
## What's new in 0.3 | ||
- Added support for default connection isolation level | ||
- Added support for returning camel cased columns | ||
- Added support for building lib on Windows | ||
- Fixed issue with IEEE 754 rounding errors | ||
- Minor fixes | ||
## What's new in 0.2 | ||
@@ -9,0 +17,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
166033
4799
77
4