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

Question: How to set busy timeout for sqlite? #1067

Closed
limira opened this Issue Aug 4, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@limira

limira commented Aug 4, 2017

Hi,

I use diesel's sqlite for my app. Now I want to set the busy timeout for my sqlite connection to 20s. I found this, but I don't know how to use it.

Can someone help me with this!

Thank you!

@sgrif

This comment has been minimized.

Member

sgrif commented Aug 4, 2017

You can use connection.execute to set the pragma. https://sqlite.org/pragma.html#pragma_busy_timeout

@sgrif sgrif closed this Aug 4, 2017

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