You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like there's some kind of error event that exits but doesn't close the connection, so the next request is met with:
Error: Global connection already exists. Call sql.close() first. From here
It seems important to be able to check for the existence of globalConnection, but there doesn't seem to be a getter, correct? Something like the following would help:
// Turn off this error and just return the existing globalConnection
sql.connect({ reuseConnection: true })
sql.connect()
// Just a getter for globalConnection
sql.getConnection()
if (sql.connectionStatus() === CONNECTED) { ... }
Maratyz, danfsd, lakca, radioman09, rick188 and 4 more