pg-promise
Advanced tools
Comparing version 11.8.0 to 11.9.0
@@ -39,3 +39,3 @@ /* | ||
* @description | ||
* ## pg-promise v11.8 | ||
* ## pg-promise v11.9 | ||
* All documentation here is for the latest official release only. | ||
@@ -42,0 +42,0 @@ * |
@@ -39,2 +39,3 @@ /* | ||
* @param {string} [options.rowMode] - See property {@link ParameterizedQuery#rowMode rowMode}. | ||
* @param {ITypes} [options.types] - See property {@link ParameterizedQuery#types types}. | ||
* | ||
@@ -95,3 +96,3 @@ * @returns {ParameterizedQuery} | ||
} else { | ||
options = assert(options, ['text', 'values', 'binary', 'rowMode']); | ||
options = assert(options, ['text', 'values', 'binary', 'rowMode', 'types']); | ||
} | ||
@@ -153,2 +154,6 @@ super(options); | ||
if (options.types !== undefined) { | ||
_i.target.types = options.types; | ||
} | ||
if (errors.length) { | ||
@@ -245,2 +250,10 @@ return _i.currentError = new ParameterizedQueryError(errors[0], _i.target); | ||
/** | ||
* @name ParameterizedQuery#types | ||
* @type {ITypes} | ||
* @default undefined | ||
* @description | ||
* Custom type parsers just for this query result. | ||
*/ | ||
/** | ||
* @name ParameterizedQuery#error | ||
@@ -247,0 +260,0 @@ * @type {errors.ParameterizedQueryError} |
@@ -41,2 +41,3 @@ /* | ||
* @param {number} [options.rows] - See property {@link PreparedStatement#rows rows}. | ||
* @param {ITypes} [options.types] - See property {@link PreparedStatement#types types}. | ||
* | ||
@@ -93,3 +94,3 @@ * @returns {PreparedStatement} | ||
constructor(options) { | ||
options = assert(options, ['name', 'text', 'values', 'binary', 'rowMode', 'rows']); | ||
options = assert(options, ['name', 'text', 'values', 'binary', 'rowMode', 'rows', 'types']); | ||
super(options); | ||
@@ -197,2 +198,6 @@ } | ||
if (options.types !== undefined) { | ||
_i.target.types = options.types; | ||
} | ||
if (errors.length) { | ||
@@ -296,2 +301,10 @@ return _i.currentError = new PreparedStatementError(errors[0], _i.target); | ||
/** | ||
* @name PreparedStatement#types | ||
* @type {ITypes} | ||
* @default undefined | ||
* @description | ||
* Custom type parsers just for this query result. | ||
*/ | ||
/** | ||
* @name PreparedStatement#error | ||
@@ -298,0 +311,0 @@ * @type {errors.PreparedStatementError} |
{ | ||
"name": "pg-promise", | ||
"version": "11.8.0", | ||
"version": "11.9.0", | ||
"description": "PostgreSQL interface for Node.js", | ||
@@ -45,3 +45,3 @@ "main": "lib/index.js", | ||
"assert-options": "0.8.1", | ||
"pg": "8.11.5", | ||
"pg": "8.12.0", | ||
"pg-minify": "1.6.4", | ||
@@ -51,9 +51,9 @@ "spex": "3.3.0" | ||
"devDependencies": { | ||
"@eslint/js": "9.4.0", | ||
"@types/node": "20.13.0", | ||
"@eslint/js": "9.6.0", | ||
"@types/node": "20.14.9", | ||
"bluebird": "3.7.2", | ||
"coveralls": "3.1.1", | ||
"cspell": "8.8.3", | ||
"eslint": "9.4.0", | ||
"globals": "15.3.0", | ||
"cspell": "8.10.0", | ||
"eslint": "9.6.0", | ||
"globals": "15.8.0", | ||
"istanbul": "0.4.5", | ||
@@ -63,6 +63,6 @@ "jasmine-node": "3.0.0", | ||
"JSONStream": "1.3.5", | ||
"pg-query-stream": "4.5.5", | ||
"pg-query-stream": "4.6.0", | ||
"tslint": "6.1.3", | ||
"typescript": "5.4.5" | ||
"typescript": "5.5.3" | ||
} | ||
} |
@@ -18,2 +18,3 @@ /* | ||
// https://github.com/Microsoft/TypeScript/issues/1213 | ||
type XPromise<T> = Promise<T>; | ||
@@ -83,2 +84,3 @@ | ||
rows?: number | ||
types?: pg.ITypes | ||
} | ||
@@ -91,2 +93,3 @@ | ||
rowMode?: void | 'array' | ||
types?: pg.ITypes; | ||
} | ||
@@ -254,2 +257,3 @@ | ||
rows: number; | ||
types: pg.ITypes; | ||
@@ -274,2 +278,3 @@ parse(): IPreparedParsed | errors.PreparedStatementError | ||
rowMode: void | 'array'; | ||
types: pg.ITypes; | ||
@@ -276,0 +281,0 @@ parse(): IParameterizedParsed | errors.ParameterizedQueryError |
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
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
426237
9852