Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Create a database by segregating messages and logging in to different people, but if you switch logins and log in again, the creation will fail |
Beta Was this translation helpful? Give feedback.
-
Creating multiple db databases reporting errors
Before each creation, the connection was closed and the database name changed, but it still reported that it already exists. Just refresh it
let connection = null connection = new Connection(); connection.on("open",(db)=>{ console.log("connection opened", db); }); connection.on("upgrade",(database, oldVersion, newVersion, )=>{ console.log(
database is upgraded from ${oldVersion} to ${newVersion} and database looks like, database); }); connection.addPlugin(workerInjector); console.log(connection) const dataBase = { name:
hoxin_+ this.id, tables: initTable, version: 1 }; await connection.initDb(dataBase) await connection.terminate() this.id ++
Beta Was this translation helpful? Give feedback.
All reactions