mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Remove a couple of weird quirks of the Worker1 and Promiser APIs. The Worker1 (now undocumented) unlink capability needs to be reevaluated to work equivalently for all storage backends.
FossilOrigin-Name: 9f2b331a32cbaadfd20d04c9908171355322c1aa1d9d6df3628f3b2fb4391ec1
This commit is contained in:
@@ -225,13 +225,7 @@
|
||||
type: "close",
|
||||
messageId: ...as above...
|
||||
dbId: ...as above...
|
||||
args: OPTIONAL: {
|
||||
|
||||
unlink: if truthy, the associated db will be unlinked (removed)
|
||||
from the virtual filesystems. Failure to unlink is silently
|
||||
ignored. Does not currently work for all storage backends.
|
||||
|
||||
}
|
||||
args: none
|
||||
}
|
||||
```
|
||||
|
||||
@@ -460,6 +454,8 @@ sqlite3.initWorker1API = function(){
|
||||
filename: db && db.filename
|
||||
};
|
||||
if(db){
|
||||
// Keep the "unlink" flag undocumented until we figure out how
|
||||
// to apply it consistently, independent of the db storage.
|
||||
wState.close(db, ((ev.args && 'object'===typeof ev.args)
|
||||
? !!ev.args.unlink : false));
|
||||
}
|
||||
|
Reference in New Issue
Block a user