Browse Source
- Replace generic execute method with specific IPC handlers - Fix database operations by using proper IPC methods (createConnection, query, run, execute) - Update type definitions to match actual IPC bridge interface - Fix "Must provide statements" error by using correct method signatures This change ensures proper communication between renderer and main processes for SQLite operations, resolving database initialization and query issues.sql-absurd-sql-further
5 changed files with 127 additions and 13 deletions
@ -0,0 +1,14 @@ |
|||||
|
/** |
||||
|
* Custom error class for SQLite operations |
||||
|
* Provides additional context and error tracking for SQLite operations |
||||
|
*/ |
||||
|
export class SQLiteError extends Error { |
||||
|
constructor( |
||||
|
message: string, |
||||
|
public operation: string, |
||||
|
public cause?: unknown |
||||
|
) { |
||||
|
super(message); |
||||
|
this.name = 'SQLiteError'; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue