We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbbd762 commit ad6cf55Copy full SHA for ad6cf55
1 file changed
src/main/kotlin/com/sakethh/linkora/data/repository/SyncRepoImpl.kt
@@ -15,7 +15,7 @@ import kotlinx.coroutines.async
15
import kotlinx.coroutines.awaitAll
16
import kotlinx.coroutines.coroutineScope
17
import kotlinx.serialization.json.Json
18
-import org.jetbrains.exposed.sql.SchemaUtils
+import org.jetbrains.exposed.sql.deleteAll
19
import org.jetbrains.exposed.sql.selectAll
20
import org.jetbrains.exposed.sql.transactions.transaction
21
@@ -117,7 +117,9 @@ class SyncRepoImpl : SyncRepo {
117
override suspend fun deleteEverything(): Result<Unit> {
118
return try {
119
transaction {
120
- SchemaUtils.drop(*linkoraTables())
+ linkoraTables().forEach {
121
+ it.deleteAll()
122
+ }
123
}
124
Result.success(Unit)
125
} catch (e: Exception) {
0 commit comments