kndndrj / nvim-dbee

Interactive database client for neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sqlite driver fails with weird error when path starts with ~/

33KK opened this issue · comments

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)

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

I'm getting same issue here:

unable to open database file: out of memory (14)

image