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.9.1 to 4.10.0

2

cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
require("@sqb/postgres-dialect");

@@ -7,1 +8,2 @@ const connect_1 = require("@sqb/connect");

(0, connect_1.registerAdapter)(new pg_adapter_js_1.PgAdapter());
tslib_1.__exportStar(require("./pg-adapter.js"), exports);

16

cjs/pg-adapter.js

@@ -9,9 +9,11 @@ "use strict";

class PgAdapter {
driver = 'postgresql-client';
dialect = 'postgres';
features = {
cursor: true,
schema: true,
fetchAsString: [connect_1.DataType.DATE, connect_1.DataType.TIMESTAMP, connect_1.DataType.TIMESTAMPTZ]
};
constructor() {
this.driver = 'postgresql-client';
this.dialect = 'postgres';
this.features = {
cursor: true,
schema: true,
fetchAsString: [connect_1.DataType.DATE, connect_1.DataType.TIMESTAMP, connect_1.DataType.TIMESTAMPTZ]
};
}
async connect(config) {

@@ -18,0 +20,0 @@ const cfg = { ...config.driverOptions };

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

class PgConnection {
intlcon;
constructor(conn) {

@@ -29,0 +28,0 @@ this.intlcon = conn;

@@ -5,1 +5,2 @@ import '@sqb/postgres-dialect';

registerAdapter(new PgAdapter());
export * from './pg-adapter.js';

@@ -6,9 +6,11 @@ import '@sqb/postgres-dialect';

export class PgAdapter {
driver = 'postgresql-client';
dialect = 'postgres';
features = {
cursor: true,
schema: true,
fetchAsString: [DataType.DATE, DataType.TIMESTAMP, DataType.TIMESTAMPTZ]
};
constructor() {
this.driver = 'postgresql-client';
this.dialect = 'postgres';
this.features = {
cursor: true,
schema: true,
fetchAsString: [DataType.DATE, DataType.TIMESTAMP, DataType.TIMESTAMPTZ]
};
}
async connect(config) {

@@ -15,0 +17,0 @@ const cfg = { ...config.driverOptions };

@@ -23,3 +23,2 @@ import { BindParam, DataTypeOIDs } from 'postgresql-client';

export class PgConnection {
intlcon;
constructor(conn) {

@@ -26,0 +25,0 @@ this.intlcon = conn;

{
"name": "@sqb/postgres",
"description": "SQB serialization extension for PostgreSQL database",
"version": "4.9.1",
"version": "4.10.0",
"author": "Panates",

@@ -16,2 +16,6 @@ "contributors": [

},
"type": "module",
"module": "./esm/index.js",
"main": "./cjs/index.js",
"types": "./types/index.d.ts",
"scripts": {

@@ -33,23 +37,13 @@ "compile": "tsc",

"dependencies": {
"putil-promisify": "^1.10.0"
"putil-promisify": "^1.10.1"
},
"devDependencies": {
"postgresql-client": "^2.5.9"
"postgresql-client": "^2.10.1"
},
"peerDependencies": {
"@sqb/builder": "^4.9.1",
"@sqb/connect": "^4.9.1",
"@sqb/postgres-dialect": "^4.9.1",
"@sqb/builder": "^4.10.0",
"@sqb/connect": "^4.10.0",
"@sqb/postgres-dialect": "^4.10.0",
"postgresql-client": "^2.x.x"
},
"type": "module",
"types": "esm/index.d.ts",
"exports": {
".": {
"require": "./cjs/index.js",
"default": "./esm/index.js"
},
"./cjs": "./cjs/index.js",
"./esm": "./esm/index.js"
},
"engines": {

@@ -56,0 +50,0 @@ "node": ">=16.0",

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