rg-sqlite-helper
Advanced tools
+3
-3
@@ -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( |
+2
-2
@@ -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 }; |
+1
-1
| { | ||
| "name": "rg-sqlite-helper", | ||
| "version": "1.0.48", | ||
| "version": "1.0.49", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
57521
-0.08%