fix: expo sqlite driver disconnect() (#6027) · typeorm/typeorm@61d59ca

fix: expo sqlite driver disconnect() (#6027)

Currently the disconnect() function does not perform a call to databaseConnection close, it only sets the queryRunner and databaseConnection to undefined, this behavior may cause problems when you do something like this: 1 - await getConnection().close(); 2 - Replace the database file 3 - Try to open connection createConnection(); and do some insert more info: expo/expo#8109

1 parent e92c743 commit 61d59ca