How can i delete db file after connection.close() #713
Unanswered
binggo8322
asked this question in
Q&A
Replies: 1 comment
-
You should use in memory database for tests. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am in Java (kotlin). Version: org.xerial:sqlite-jdbc:3.36.0.2
I would like to delete the file db after each test.
When I try to delete the file I get an error. "The process cannot access the file because it is being used by another process"
Code:
var connection : Connection = (dataSource as SQLiteDataSource).connection
((connection) as SQLiteConnection).close()
Beta Was this translation helpful? Give feedback.
All reactions