dictu-lang / Dictu

Dictu is a high-level dynamically typed, multi-paradigm, interpreted programming language.
https://dictu-lang.com
MIT License
268 stars 53 forks source link

[FEATURE] SQLite Timeout #667

Closed Jason2605 closed 11 months ago

Jason2605 commented 11 months ago

Is there an existing issue for this?

Is your feature request related to a problem?

Currently if two processes attempt to use a SQLite database a "Database is locked" error will immediately be raised, instead we want to implement https://www.sqlite.org/c3ref/busy_timeout.html so that we can handle this scenario and re-attempt the query

Describe the solution you'd like

Default timeout of 5 seconds (same as Python Sqlite lib) and then allow the user to also change the timeout setting

Describe alternatives you've considered

No response

Additional context

No response