refactor: Move getLastInsertRowId to the util.sq
This commit is contained in:
parent
f4f06b0500
commit
41d19c46b4
|
@ -55,7 +55,7 @@ class GeneratorWordlistRepositoryImpl(
|
||||||
name = name,
|
name = name,
|
||||||
createdAt = now,
|
createdAt = now,
|
||||||
)
|
)
|
||||||
val wordlistId = db.generatorWordlistQueries
|
val wordlistId = db.utilQueries
|
||||||
.getLastInsertRowId()
|
.getLastInsertRowId()
|
||||||
.executeAsOne()
|
.executeAsOne()
|
||||||
wordlist.forEach { word ->
|
wordlist.forEach { word ->
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
getLastInsertRowId:
|
||||||
|
SELECT last_insert_rowid();
|
Loading…
Reference in New Issue