Skip to content

Commit

Permalink
refactor: Move getLastInsertRowId to the util.sq
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Jan 20, 2024
1 parent f4f06b0 commit 41d19c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class GeneratorWordlistRepositoryImpl(
name = name,
createdAt = now,
)
val wordlistId = db.generatorWordlistQueries
val wordlistId = db.utilQueries
.getLastInsertRowId()
.executeAsOne()
wordlist.forEach { word ->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
getLastInsertRowId:
SELECT last_insert_rowid();

0 comments on commit 41d19c4

Please sign in to comment.