kndndrj / nvim-dbee

Interactive database client for neovim
GNU General Public License v3.0
606 stars 39 forks source link

Can't query database at all #113

Open dvd42 opened 1 month ago

dvd42 commented 1 month ago

I am trying to connect to a redshift database. However, I am having trouble making it work. It seems that now Dbee connects, as per the logs:

2024/05/16 01:48:41 [info]: calling method "DbeeGetConnections" 2024/05/16 01:48:41 [info]: method "DbeeGetConnections" returned successfully

However on the UI I see:

image

So it seems like it has not connected after all. Here is the config I am using:

require("dbee").setup {
sources = {
 require("dbee.sources").MemorySource:new({
   {
     name = "data_warehouse",
     type = "postgres",
     url = "postgres://user:pass@url:5439",
   },
  }),

I am extremely confused, what am I missing?

dvd42 commented 1 month ago

Ok I can actually query it, but It shows as disconnected as seen in the image and whenever I try to toggle the tree node on the connection I get:

E5108: Error executing lua: function DbeeConnectionGetStructure[1]..remote#define#request, line 2: Vim(let):Error invoking '0:function:DbeeConnectionGetStructure' on channel 6:
c.GetStructure: conn.QueryContext: pq: relation "pg_matviews" does not exist. 

Is this expected?