Sqlite driver fails with weird error when path starts with ~/
33KK opened this issue · comments
33KK commented
sources = {
require("dbee.sources").MemorySource:new({
{
name = "test",
type = "sqlite",
url = "~/test.db",
},
}),
},
Error 07:21:52 notify.error nvim-dbee unable to open database file: out of memory (14)
Andrej Kenda commented
Same error if using env variables in the DSN.
This is an issue with the used sqlite driver.
We can either:
- manually expand the tilde and env variables before opening a connection
- perform validation and disallow usage of these symbols in the DSN
Henry Oliver commented