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

Automatically SELECT database after HELLO? #123

Closed
ysc3839 opened this issue Jul 24, 2023 · 2 comments · Fixed by #134
Closed

Automatically SELECT database after HELLO? #123

ysc3839 opened this issue Jul 24, 2023 · 2 comments · Fixed by #134

Comments

@ysc3839
Copy link

ysc3839 commented Jul 24, 2023

Currently there's not an on_connect callback, so it would be helpful to execute SELECT automatically after HELLO.

@criatura2
Copy link

Good point. It would be even better if the HELLO command would allow SELECTing automatically since this is the first command to be executed.

@mzimbres
Copy link
Collaborator

This looks like an important addition, I will think more about where exactly it should be implemented. We can put it in the connection config so that if set it gets sent with HELLO.

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 a pull request may close this issue.

3 participants