🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

rg-sqlite-helper

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rg-sqlite-helper - npm Package Compare versions

Comparing version
1.0.48
to
1.0.49
+3
-3
dist/index.cjs

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

}
async detectForeignKeyIssue(tableName, recordIdentifier, getBlockingRows = false) {
async detectForeignKeyIssue(tableName, recordIdentifier) {
const results = {

@@ -1275,5 +1275,5 @@ table: tableName,

}
const blockingRows = getBlockingRows ? await db.getAll(
const blockingRows = await db.getAll(
`SELECT * FROM ${table.name} WHERE ${referencingColumn} = ${targetValue}`
) : [];
);
if (blockingRows.length > 0) {

@@ -1280,0 +1280,0 @@ results.blockingReferences.push(

@@ -158,3 +158,3 @@ import * as SqlWarpper from 'sqlite';

getAll<T>(sql: string | Query, ...args: ArgsInput): Promise<T[]>;
detectForeignKeyIssue(tableName: string, recordIdentifier: Record<string, any>, getBlockingRows?: boolean): Promise<ForeignKeyIssueDetails>;
detectForeignKeyIssue(tableName: string, recordIdentifier: Record<string, any>): Promise<ForeignKeyIssueDetails>;
run(sql: string | Query, ...args: ArgsInput): Promise<SqlWarpper.ISqlite.RunResult<sqlite3.Statement>>;

@@ -179,2 +179,2 @@ execMigrationQuery(sql: string): Promise<void>;

export { type SqlConnectionInterface, SqlManager, createKyselyDriver, downloadSQLNativeLib as downloadLib, getSqliteDriver, isForeignKeyConstraintError, isUNIQUEConstraintError, sql };
export { type ForeignKeyIssueDetails, type SqlConnectionInterface, SqlManager, createKyselyDriver, downloadSQLNativeLib as downloadLib, getSqliteDriver, isForeignKeyConstraintError, isUNIQUEConstraintError, sql };
{
"name": "rg-sqlite-helper",
"version": "1.0.48",
"version": "1.0.49",
"description": "",

@@ -5,0 +5,0 @@ "scripts": {