Closed Vance-ng-vn closed 7 months ago
Please provide a minimal self-contained example that demonstrates the problem (a single js file that sets up everything). I'm certain that either your code or your assumptions are broken. For example INSERT OR IGNORE INTO
might cause nothing to be inserted at all when a duplicate key is inserted. Assuming InsertMany
failed just because changes === 0
is flawed.
Ah, as you say, my assumptions were not accurate. Thank you very much.
I've just started using better-sqlite3, beginning with version 9.x, and there's a pretty annoying bug: 'transaction function does nothing'. And there's no error message at all!
My suspicion: during the transaction, a select statement might be causing this disruption.
And here is my source code:
Is there an older version that works well with WAL Mode?
Docker: alphine 3.17.5 Nodejs: 18.18.2 better-sqlite3: v9.x (now, it's 9.2.2)