-
Notifications
You must be signed in to change notification settings - Fork 21
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
Need a OO way to update and delete using a WHERE instead of a rowid #13
Comments
Actually, when I try to execute the update with a where clause, I get an error:
How can I get the rowid? |
Get the rowid by simply selecting |
Hi Colin! I don't really have time to add new features to the oo side of things (I tend to just use the SQL interface). If you submit a patch and tests I'll be happy to add you to the contributors and bump the gem! Cheers, Simon On 10 Nov 2011, at 22:32, Colin [email protected] wrote:
|
Alrighty! I think I'll add a Table#rowids(where_clause=nil) method which will execute Then, there are two options:
Thoughts? |
It seems as if there is no way to get the rowid from using the Table#select method.
Assuming the table has a unique column, it could be used in a where clause in place of a rowid.
Obviously, the workaround for this is to just execute the SQL directly.
The text was updated successfully, but these errors were encountered: