Skip to content

insert always returns int #1222

Answered by simolus3
ffpetrovic asked this question in Q&A
May 25, 2021 · 1 comments · 21 replies

You must be logged in to vote

You can use insertReturning instead of insert to obtain a full row instance with the generated uuid.

Be aware that this requires a fairly recent sqlite3 version (at least 3.35.0). If you use sqlite3_flutter_libs you will have that version available, if you rely on the sqlite3 from the operating systems you probably don't.

Replies: 1 comment 21 replies

You must be logged in to vote
21 replies
@simolus3

@matthewkooshad

@matthewkooshad

@simolus3

@matthewkooshad

Answer selected by ffpetrovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants