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

roll back when strict one fails #17

Closed
chadwhitacre opened this issue Aug 8, 2013 · 0 comments
Closed

roll back when strict one fails #17

chadwhitacre opened this issue Aug 8, 2013 · 0 comments

Comments

@chadwhitacre
Copy link
Collaborator

If you do:

db.one("create table foo (bar text)")

you'll get a TooFew: Got -1 rows instead of 1. error, but the table will indeed be created. What would it be like to turn autocommit off and only commit db.one transactions when they returned exactly one row? What are the performance characteristics of autocommit?

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

No branches or pull requests

1 participant