feat(picker.db): allow configuring the sqlite3 lib path. Closes #1025

This commit is contained in:
Folke Lemaitre 2025-02-09 10:02:22 +01:00
parent 9bccbdb2d9
commit b9900444d2
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 10 additions and 0 deletions

View file

@ -20,6 +20,10 @@ ffi.cdef([[
]])
local function sqlite3_lib()
local opts = Snacks.picker.config.get()
if opts.db.sqlite3_path then
return opts.db.sqlite3_path
end
if jit.os ~= "Windows" then
return "sqlite3"
end