Due to the non-working / terminated operation of WebSQL, there were no errors / functions requests - and will not be executed. The same problem exists as a Chromium error, for example, without an answer.
It seems that the worst relates to your two questions:
1: Since the vacuum command can only be run when it is not connected to the database, it can only be run from the command line. It seems that in browsers or javascript there is no "disconnect the database and then run the VACUUM command".
2: Do not count on it. It is not clear that it will work even with the maximum size of the maximum size, and even if this happens, you will notice a significant slowdown long before you press the maximum size limit.
In the best case scenario, you can send a command to a plug-in module or something outside the javascript context that can run the command itself ... now it is deprecated, so itβs pretty controversial. For an outdated application, if you need to have a function, you need to do this outside of the simple context of webpage / js.
Future / current applications use IndexedDB; This question was answered only for legacy applications.
source share