IndexDb

var myDB={
            name:"test",
            version:3,
            db:null
        };
        openDB(myDB.name,myDB.version);
        setTimeout(function(){
            closeDB(myDB.db);
            deleteDB(myDB.name);
        },500);

because asynchronous API is willing, there is no guarantee that the db object can be obtained before the closeDB method call (in fact, getting the db object is much slower than executing a statement)

what should I do with indexDB asynchronism here? When adding and deleting data, you always need to use setTimeout to achieve the function. Is there any other way

Mar.02,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44e77-44af1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44e77-44af1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?