We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06a5d2 commit 77b3d6bCopy full SHA for 77b3d6b
lib/enhanced_sqlite3/adapter.rb
@@ -93,11 +93,16 @@ def configure_connection
93
private
94
95
def configure_busy_handler_timeout
96
- return unless @config.key?(:timeout)
97
- return if @config[:client] == "extralite" # extralite doesn't support busy_handler
+ return unless @config[:timeout]
98
99
timeout = self.class.type_cast_config_to_integer(@config[:timeout])
100
timeout_seconds = timeout.fdiv(1000)
+
101
+ if @config[:client] == "extralite"
102
+ @raw_connection.busy_timeout(timeout_seconds)
103
+ return
104
+ end
105
106
retry_interval = 6e-5 # 60 microseconds
107
108
@raw_connection.busy_handler do |count|
0 commit comments