postgresql-client
Advanced tools
Comparing version 2.9.0 to 2.9.1
@@ -0,1 +1,8 @@ | ||
# v2.9.1 | ||
[2023-10-03] | ||
### Changes | ||
* Added int2Vector data type with binary protocol ([`94a9a3b`](https://github.com/panates/postgresql-client/commit/94a9a3b3a9e10ce7bdbce132c9195826ecc7aec1)) | ||
# v2.9.0 | ||
@@ -2,0 +9,0 @@ [2023-10-03] |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ArrayNumericType = exports.NumericType = void 0; | ||
exports.numberBytesToString = exports.ArrayNumericType = exports.NumericType = void 0; | ||
const constants_js_1 = require("../constants.js"); | ||
@@ -96,2 +96,3 @@ const NUMERIC_NEG = 0x4000; | ||
} | ||
exports.numberBytesToString = numberBytesToString; | ||
/* https://github.com/pgjdbc/pgjdbc/blob/3eca3a76aa4a04cb28cb960ed674cb67db30b5e3/pgjdbc/src/main/java/org/postgresql/util/ByteConverter.java */ | ||
@@ -98,0 +99,0 @@ /** |
@@ -48,3 +48,3 @@ import { DataTypeOIDs } from '../constants.js'; | ||
*/ | ||
function numberBytesToString(digits, scale, weight, sign) { | ||
export function numberBytesToString(digits, scale, weight, sign) { | ||
let i; | ||
@@ -51,0 +51,0 @@ let d; |
{ | ||
"name": "postgresql-client", | ||
"description": "Enterprise level PostgreSQL client for JavaScript", | ||
"version": "2.9.0", | ||
"version": "2.9.1", | ||
"author": "Panates", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -121,50 +121,52 @@ ## postgresql-client | ||
| Posgtres type | JS type | Receive | Send | | ||
|---------------|:------------| ------------|----------| | ||
| bool | boolean | text,binary | binary | | ||
| int2 | number | text,binary | binary | | ||
| int4 | number | text,binary | binary | | ||
| int8 | BigInt | text,binary | binary | | ||
| float4 | number | text,binary | binary | | ||
| float8 | number | text,binary | binary | | ||
| char | string | text,binary | binary | | ||
| bpchar | string | text,binary | binary | | ||
| varchar | string | text,binary | binary | | ||
| date | Date | text,binary | binary | | ||
| time | Date | text,binary | binary | | ||
| timestamp | Date | text,binary | binary | | ||
| timestamptz | Date | text,binary | binary | | ||
| oid | number | text,binary | binary | | ||
| bytea | Buffer | text,binary | binary | | ||
| uuid | string | text,binary | binary | | ||
| json | object | text,binary | binary | | ||
| jsonb | object | text,binary | binary | | ||
| xml | string | text,binary | binary | | ||
| point | Point | text,binary | binary | | ||
| circle | Circle | text,binary | binary | | ||
| lseg | Rectangle | text,binary | binary | | ||
| box | Rectangle | text,binary | binary | | ||
| _bool | boolean[] | text,binary | binary | | ||
| _int2 | number[] | text,binary | binary | | ||
| _int4 | number[] | text,binary | binary | | ||
| _int8 | BigInt[] | text,binary | binary | | ||
| _float4 | number[] | text,binary | binary | | ||
| _float8 | number[] | text,binary | binary | | ||
| _char | string[] | text,binary | binary | | ||
| _bpchar | string[] | text,binary | binary | | ||
| _varchar | string[] | text,binary | binary | | ||
| _date | Date[] | text,binary | binary | | ||
| _time | Date[] | text,binary | binary | | ||
| _timestamp | Date[] | text,binary | binary | | ||
| _timestamptz | Date[] | text,binary | binary | | ||
| _uuid | string[] | text,binary | binary | | ||
| _oid | number[] | text,binary | binary | | ||
| _bytea | Buffer[] | text,binary | binary | | ||
| _json | object[] | text,binary | binary | | ||
| _jsonb | object[] | text,binary | binary | | ||
| _xml | string[] | text,binary | binary | | ||
| _point | Point[] | text,binary | binary | | ||
| _circle | Circle[] | text,binary | binary | | ||
| _lseg | Rectangle[] | text,binary | binary | | ||
| _box | Rectangle[] | text,binary | binary | | ||
| Posgtres type | JS type | Receive | Send | | ||
|---------------|:------------|-------------|--------| | ||
| bool | boolean | text,binary | binary | | ||
| int2 | number | text,binary | binary | | ||
| int4 | number | text,binary | binary | | ||
| int8 | BigInt | text,binary | binary | | ||
| float4 | number | text,binary | binary | | ||
| float8 | number | text,binary | binary | | ||
| char | string | text,binary | binary | | ||
| bpchar | string | text,binary | binary | | ||
| varchar | string | text,binary | binary | | ||
| date | Date | text,binary | binary | | ||
| time | Date | text,binary | binary | | ||
| timestamp | Date | text,binary | binary | | ||
| timestamptz | Date | text,binary | binary | | ||
| oid | number | text,binary | binary | | ||
| bytea | Buffer | text,binary | binary | | ||
| uuid | string | text,binary | binary | | ||
| json | object | text,binary | binary | | ||
| jsonb | object | text,binary | binary | | ||
| xml | string | text,binary | binary | | ||
| point | Point | text,binary | binary | | ||
| circle | Circle | text,binary | binary | | ||
| lseg | Rectangle | text,binary | binary | | ||
| box | Rectangle | text,binary | binary | | ||
| int2Vector | number[] | text,binary | binary | | ||
| _bool | boolean[] | text,binary | binary | | ||
| _int2 | number[] | text,binary | binary | | ||
| _int4 | number[] | text,binary | binary | | ||
| _int8 | BigInt[] | text,binary | binary | | ||
| _float4 | number[] | text,binary | binary | | ||
| _float8 | number[] | text,binary | binary | | ||
| _char | string[] | text,binary | binary | | ||
| _bpchar | string[] | text,binary | binary | | ||
| _varchar | string[] | text,binary | binary | | ||
| _date | Date[] | text,binary | binary | | ||
| _time | Date[] | text,binary | binary | | ||
| _timestamp | Date[] | text,binary | binary | | ||
| _timestamptz | Date[] | text,binary | binary | | ||
| _uuid | string[] | text,binary | binary | | ||
| _oid | number[] | text,binary | binary | | ||
| _bytea | Buffer[] | text,binary | binary | | ||
| _json | object[] | text,binary | binary | | ||
| _jsonb | object[] | text,binary | binary | | ||
| _xml | string[] | text,binary | binary | | ||
| _point | Point[] | text,binary | binary | | ||
| _circle | Circle[] | text,binary | binary | | ||
| _lseg | Rectangle[] | text,binary | binary | | ||
| _box | Rectangle[] | text,binary | binary | | ||
| _int2Vector | number[][] | text,binary | binary | | ||
@@ -171,0 +173,0 @@ |
import type { DataType } from '../interfaces/data-type.js'; | ||
export declare const NumericType: DataType; | ||
export declare const ArrayNumericType: DataType; | ||
/** | ||
* Convert a number from binary representation to text representation. | ||
* @param digits array of shorts that can be decoded as the number String | ||
* @param scale the scale of the number binary representation | ||
* @param weight the weight of the number binary representation | ||
* @param sign the sign of the number | ||
* @return String the number as String | ||
*/ | ||
export declare function numberBytesToString(digits: number[], scale: number, weight: number, sign: number): string; |
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
412841
10077
200