mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-03-07 06:20:50 -08:00
Update index.ts
This commit is contained in:
parent
cdb496961c
commit
c30a4cc05c
1 changed files with 6 additions and 6 deletions
|
|
@ -145,11 +145,11 @@ export class DatabaseService implements IDatabaseService {
|
|||
logging: false,
|
||||
nativeBinding: SQLITE_BINARY_PATH,
|
||||
// Add safer options to prevent crashes on cleanup
|
||||
prepareDatabase: (db: Database) => {
|
||||
prepareDatabase: (database: Database) => {
|
||||
// Set a busy timeout to handle concurrent access
|
||||
db.pragma('busy_timeout = 5000');
|
||||
database.pragma('busy_timeout = 5000');
|
||||
// Optimize for safety over performance
|
||||
db.pragma('synchronous = NORMAL');
|
||||
database.pragma('synchronous = NORMAL');
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -198,11 +198,11 @@ export class DatabaseService implements IDatabaseService {
|
|||
logging: false,
|
||||
nativeBinding: SQLITE_BINARY_PATH,
|
||||
// Add safer options to prevent crashes on cleanup
|
||||
prepareDatabase: (db: Database) => {
|
||||
prepareDatabase: (database: Database) => {
|
||||
// Set a busy timeout to handle concurrent access
|
||||
db.pragma('busy_timeout = 5000');
|
||||
database.pragma('busy_timeout = 5000');
|
||||
// Optimize for safety over performance
|
||||
db.pragma('synchronous = NORMAL');
|
||||
database.pragma('synchronous = NORMAL');
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue