Skip to content

Commit 3e1a5b0

Browse files
committed
Keep DB table alive
1 parent d8cb533 commit 3e1a5b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/kotlin/org/javacs/kt/index/SymbolIndex.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ private object Symbols : Table() {
2222
* A global view of all available symbols across all packages.
2323
*/
2424
class SymbolIndex {
25-
private val db = Database.connect("jdbc:h2:mem:symbolindex", "org.h2.Driver")
25+
private val db = Database.connect("jdbc:h2:mem:symbolindex;DB_CLOSE_DELAY=-1", "org.h2.Driver")
2626

2727
init {
2828
transaction(db) {

0 commit comments

Comments
 (0)