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

fix(postgres): fixing postgres connection #17

Merged
merged 5 commits into from
Jan 20, 2024

Conversation

KevenGoncalves
Copy link
Contributor

This fix the problem of lazysql not opening a postgres connection because the missing dbName path
#16

@jorgerojas26
Copy link
Owner

The main idea of this is to be able to connect to a specific database, but this PR does not handle that scenario, it only fixes the connection url being saved with the database name but when you connect to that url, the tree stills shows every database that lives in the server.

I think this only makes sense to merge if we could handle that scenario.

@KevenGoncalves
Copy link
Contributor Author

The main idea of this is to be able to connect to a specific database, but this PR does not handle that scenario, it only fixes the connection url being saved with the database name but when you connect to that url, the tree stills shows every database that lives in the server.

I think this only makes sense to merge if we could handle that scenario.

yes, the tree show all the databases but it doesn't allow you to see the data or select others databases, only the one is passed in the string connection

@jorgerojas26
Copy link
Owner

Yeah, but i think it would be confusing to be allowed to see other databases but not be able to interact with them. If i put a database in the connection string i would expect to only connect and see that specific database.

@KevenGoncalves
Copy link
Contributor Author

Yeah, but i think it would be confusing to be allowed to see other databases but not be able to interact with them. If i put a database in the connection string i would expect to only connect and see that specific database.

You are right, let me fix that and open the PR again

jorgerojas26 and others added 3 commits January 20, 2024 12:16
fix(postgres): fixing postgres connection

fix(db-name): improve the store of dbName

fix(db-name): fix dbName if not passed

fix(db-name): improve the handle of dbname path
@KevenGoncalves
Copy link
Contributor Author

@jorgerojas26 Done!.

Now only show the database that is passed in the dbName
Captura de Tela 2024-01-20 às 12 24 27

@jorgerojas26
Copy link
Owner

@KevenGoncalves awesome bro. I like that.

Can you please resolve the conflicts?. I will merge this.

@KevenGoncalves
Copy link
Contributor Author

Let me try to fix it

@KevenGoncalves
Copy link
Contributor Author

@jorgerojas26 Merge conflict fixed

@jorgerojas26 jorgerojas26 merged commit a17e3ca into jorgerojas26:main Jan 20, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants