Skip to content
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

Update method not found in torndb.Connection #12

Closed
vskr opened this issue Jul 4, 2013 · 2 comments
Closed

Update method not found in torndb.Connection #12

vskr opened this issue Jul 4, 2013 · 2 comments

Comments

@vskr
Copy link

vskr commented Jul 4, 2013

How do I use update method mentioned here https://torndb.readthedocs.org/en/latest/#torndb.Connection.update

Looking at the source Connection class doesn't have a update() method

@oczkers
Copy link

oczkers commented Jul 4, 2013

dunno how to quote but look at 203 line:

update = execute_rowcount

@bdarnell
Copy link
Owner

bdarnell commented Jul 4, 2013

Yes, update and insert are just aliases for the execute methods so you don't have to remember to use execute_rowcount for updates and execute_lastrowid for inserts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants