-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get last_insert_rowid #43
Comments
Yes, there's no specific function right now to give you the last insert row_id.. You could try with raw query. Hope it helps. Let me know if you need more details. |
Is it the .save() function returning I'd? Sorry away from pc can't check atm |
Yes. |
.save() returns void |
Yeah. My bad. It doesn't return the id, it sets the id field in the object. As you mentioned, you could use getId() after that. You could modify the save method to return the id if you need that too.. Hope it helps. |
I can seem to find any method returns last_insert_rowid(), do I need to get it with raw query?
I need to use "last_insert_rowid" because i am trying to populate database at first run from a text file and there is ID relation of items
Thanks
The text was updated successfully, but these errors were encountered: