Skip to content

Conversation

@scottnemes
Copy link
Contributor

Description

What:
Reworks the reconnect logic (both the command \r and calls from other parts of the code) to actually create a new database connection instead of simply running a command to change the database.

Why:
With the existing reconnect logic, some people would get long reconnect times. Plus the logic to reconnect was more indirect as it was a result of calling another command instead of specifically creating a new connection.

Resolves #746

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

… for use by the command \r to call the new reconnect function. Updated help output in tests to match the change.
… for use by the command \r to call the new reconnect function. Updated help output in tests to match the change.
…emes/mycli into feat/746/rework-reconnect-command
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.

Make reconnect command create a new connection to the database

1 participant