refactor: Move getLastInsertRowId to the util.sq

This commit is contained in:
Artem Chepurnoy 2024-01-20 12:41:44 +02:00
parent f4f06b0500
commit 41d19c46b4
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
2 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class GeneratorWordlistRepositoryImpl(
name = name,
createdAt = now,
)
val wordlistId = db.generatorWordlistQueries
val wordlistId = db.utilQueries
.getLastInsertRowId()
.executeAsOne()
wordlist.forEach { word ->

View File

@ -0,0 +1,2 @@
getLastInsertRowId:
SELECT last_insert_rowid();