Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sqb/postgres

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sqb/postgres - npm Package Compare versions

Comparing version 4.0.1-beta.14 to 4.0.1-beta.15

dist/datatype-map.d.ts

13

dist/PgConnection.js

@@ -10,2 +10,3 @@ "use strict";

const postgresql_client_1 = require("postgresql-client");
const datatype_map_1 = require("./datatype-map");
const SqbDataTypToOIDMap = {

@@ -80,6 +81,16 @@ [connect_1.DataType.BOOL]: postgresql_client_1.DataTypeOIDs.bool,

async execute(query) {
var _a;
assert_1.default.ok(this.intlcon, 'Can not execute query with a closed db session');
const params = (_a = query.params) === null || _a === void 0 ? void 0 : _a.map((v, i) => {
const paramOpts = Array.isArray(query.paramOptions) ? query.paramOptions[i] : undefined;
if (v != null && paramOpts && paramOpts.dataType) {
const oid = datatype_map_1.dataTypeToOID(paramOpts.dataType, paramOpts.isArray);
if (oid)
return new postgresql_client_1.BindParam(oid, v);
}
return v;
});
const opts = {
autoCommit: query.autoCommit,
params: query.params,
params,
cursor: query.cursor,

@@ -86,0 +97,0 @@ fetchCount: query.fetchRows,

4

package.json
{
"name": "@sqb/postgres",
"description": "SQB serialization extension for PostgreSQL database",
"version": "4.0.1-beta.14",
"version": "4.0.1-beta.15",
"author": "Panates Ltd.",

@@ -34,3 +34,3 @@ "contributors": [

"postgresql-client": "^1.13.0",
"@sqb/postgres-dialect": "^4.0.1-beta.14"
"@sqb/postgres-dialect": "^4.0.1-beta.15"
},

@@ -37,0 +37,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc