Commit 61d59ca
authored
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#81091 parent e92c743 commit 61d59ca
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments