Closed marramgrass closed 6 years ago
Hello, @marramgrass! This is your first Pull Request that will be reviewed by Ebert, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.
@marramgrass thank you for this PR. I think that allowing the timeout to be passed through is a great idea and doing it with optional keyword options, then an Application
config and finally a hardcoded default is a great idea. Thanks for your work on this.
For info, I will be coming back to this to update. Just very busy with other things at the moment. Sorry for the delay.
@marramgrass thanks for letting us know. I'm happy to wait for you to make the changes, or if you'd like some help I can take some time to make those changes myself.
I've pushed a further commit making the discussed changes.
Please let me know if you'd rather I squashed them down to one.
Thanks @marramgrass for this contribution. I think I'll change the name of the global config to match the db_timeout
name. I'll try to get a release out today.
Thank you @mmmries and @obmarg for making my first contribution to the project such a pleasant and smooth experience 👍
Hello.
First, thank you for the library. It's come in very useful for us.
We've been doing some work where we needed to increase the timeout
esqlite
applies to various operations. This pull request updates Sqlitex to expose the timeout argument in the various places thatesqlite
does so.With these changes, Sqlitex defaults to the
esqlite
timeout of 5000 ms, and uses a combination of default values on the function arguments and implementing anApplication
-level config to leave the interface of Sqlitex unchanged for those who don't need to modify the timeout.I think this is a broadly useful enough change to consider bringing into the upstream, but I worry that the implementation is a little noisy. Please let me know any changes you want made.
Thanks again.