SQLite Forum

Is there a way to wait until the database is available?
Login
Not according to the API docs. Setting it to an absurdly high value (noting that it's a signed int, so 2GB is the max) would seem to be the only way.

See <https://www.sqlite.org/c3ref/busy_handler.html>