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

af-db-ts

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

af-db-ts - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

2

dist/cjs/src/pg/get-sql/reset-sequence.js

@@ -12,3 +12,3 @@ "use strict";

const sequenceName = `${table}_${incFName}_seq`;
return `SELECT setval('"${schema}"."${sequenceName}"', (SELECT MAX("${incFName}") FROM "${schema}"."${table}"));`;
return `SELECT setval('"${schema}"."${sequenceName}"', (SELECT COALESCE(MAX("${incFName}"), 1) FROM "${schema}"."${table}"));`;
}).join('\n');

@@ -15,0 +15,0 @@ };

@@ -9,5 +9,5 @@ import { getTableSchemaPg } from '../table-schema-pg';

const sequenceName = `${table}_${incFName}_seq`;
return `SELECT setval('"${schema}"."${sequenceName}"', (SELECT MAX("${incFName}") FROM "${schema}"."${table}"));`;
return `SELECT setval('"${schema}"."${sequenceName}"', (SELECT COALESCE(MAX("${incFName}"), 1) FROM "${schema}"."${table}"));`;
}).join('\n');
};
//# sourceMappingURL=reset-sequence.js.map
{
"name": "af-db-ts",
"version": "3.0.4",
"version": "3.0.5",
"description": "A highly specialized function library",

@@ -5,0 +5,0 @@ "main": "./dist/cjs/src/index.js",

@@ -15,4 +15,4 @@ import { getTableSchemaPg } from '../table-schema-pg';

const sequenceName = `${table}_${incFName}_seq`;
return `SELECT setval('"${schema}"."${sequenceName}"', (SELECT MAX("${incFName}") FROM "${schema}"."${table}"));`;
return `SELECT setval('"${schema}"."${sequenceName}"', (SELECT COALESCE(MAX("${incFName}"), 1) FROM "${schema}"."${table}"));`;
}).join('\n');
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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