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

DB created through UI will require explicit update of the CLI cache #886

Open
sivukhin opened this issue Jul 4, 2024 · 0 comments
Open

Comments

@sivukhin
Copy link
Contributor

sivukhin commented Jul 4, 2024

Context

turso-cli caches DB list and use it for some commands, for example db shell. This can lead to slightly confusing behaviour, if DB was created from UI, as CLI will report that database is not found. For example:

$> turso db shell ui-db # ui-db created from the ui
Error: database ui-db not found. List known databases using turso db list
$> turso db shell libsql://ui-db-sivukhin.turso.io # note, that if user will connect through URL - turso will not suggest any command to him
Error: could not find a database with the hostname ui-db-sivukhin.turso.io
$> turso db list # after this call - we can finally connect to ui-db through CLI

It's better to refresh cache once if DB was not found or at least improve error messages (for example, shell connection through URL doesn't mention any helpful commands like turso db list)

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