Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't query database at all #113

Open
dvd42 opened this issue May 15, 2024 · 1 comment
Open

Can't query database at all #113

dvd42 opened this issue May 15, 2024 · 1 comment

Comments

@dvd42
Copy link

dvd42 commented May 15, 2024

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 dvd42 changed the title Making the thing work Can't query database at all May 15, 2024
@dvd42
Copy link
Author

dvd42 commented May 16, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant