tursodatabase/turso-cli

`turso db shell` woes because of mismatch between database name and URL

Ouverte

#606 ouverte le 28 août 2023

 (0 commentaire) (0 réaction) (0 personne assignée)Go (50 forks)github user discovery
enhancementgood first issuehelp wanted

Métriques du dépôt

Stars
 (302 étoiles)
Métriques de merge PR
 (Merge moyen 4h 32m) (2 PRs mergées en 30 j)

Description

If I create a database with the name hello, the URL starts with hello-penberg making the following error likely:

$ turso db shell hello-penberg 
Error: database hello-penberg not found. List known databases using turso db list

Let's either (1) add an alias for hello-penberg to hello (but tell the user that we're using the alias) or (2) at minimum improve the error message to use word distance algorithm to suggest the most likely name.

Reported by Jan Piotrowski.

Guide contributeur