We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to retrieve row id from sqlite table, my query like so :
SELECT(table.Account.AllColumns).FROM(table.Account)
I can't get the row id from the table, maybe you have a solution?
I think in generating tables and models, we should add:
Rowid int
The text was updated successfully, but these errors were encountered:
Hi @ibadi-id. Check raw expression and faq.
stmt := SELECT( Raw("rowid").AS("row_id"), Account.AllColumns, ).FROM(Account) var dest struct { RowID int64 model.Account } err := stmt.Query(db, &dest)
Sorry, something went wrong.
No branches or pull requests
I need to retrieve row id from sqlite table, my query like so :
SELECT(table.Account.AllColumns).FROM(table.Account)
I can't get the row id from the table, maybe you have a solution?
I think in generating tables and models, we should add:
Rowid int
The text was updated successfully, but these errors were encountered: